Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #############################################################################
- # Default syslog-ng.conf file which collects all local logs into a
- # single file called /var/log/messages.
- #
- @version: 3.7
- @include "scl.conf"
- @module mod-java
- destination d_elastic {
- java(
- class_path("/usr/local/lib/syslog-ng/java-modules/elastic.jar:/usr/share/elasticsearch/lib/*.jar:/usr/local/lib/syslog-ng/java-modules/*.jar")
- class_name("org.syslog_ng.elasticsearch.ElasticSearchDestination")
- option("index", "syslog-ng_${YEAR}.${MONTH}.${DAY}")
- option("type", "test")
- );
- };
- source s_tls {
- syslog(
- port(7777)
- transport("tls")
- tls(
- key-file("/usr/local/etc/syslog-ng/key.d/server.key")
- cert-file("/usr/local/etc/syslog-ng/cert.d/server.crt")
- peer-verify(optional-untrusted)
- )
- );
- };
- source s_local {
- system();
- internal();
- };
- destination d_local {
- file("/var/log/jacekmessages");
- };
- log {
- source(s_tls);
- source(s_local);
- destination(d_local);
- destination(d_elastic);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement