djok / bisonRouter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bisonRouter

apt install syslog-ng-core

/etc/syslog-ng/conf.d/zinc.conf

destination d_elasticsearch_http {
    elasticsearch-http(
        index("syslog-ng")
        type("")
        user("admin")
        password("admin")
        url("http://localhost:4080/api/_bulk")
        template("$(format-json --scope rfc5424 --scope dot-nv-pairs
        --rekey .* --shift 1 --scope nv-pairs
        --exclude DATE --key ISODATE @timestamp=${ISODATE})")
    );
};


log {
    source(src);
    destination(d_elasticsearch_http);
    flags(flow-control);
};

About

License:GNU General Public License v3.0


Languages

Language:Shell 41.9%Language:Python 37.0%Language:Go 21.1%