Advertisement
Guest User

Untitled

a guest
Aug 7th, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.83 KB | None | 0 0
  1. #############################################################################
  2. # Default syslog-ng.conf file which collects all local logs into a
  3. # single file called /var/log/messages.
  4. #
  5.  
  6. @version: 3.7
  7. @include "scl.conf"
  8.  
  9. @module mod-java
  10.  
  11. destination d_elastic {
  12.   java(
  13.     class_path("/opt/syslog-ng/lib/syslog-ng/java-modules/elastic.jar:/usr/share/elasticsearch/lib/*.jar:/usr/local/lib/syslog-ng/java-modules/*.jar")
  14.     class_name("org.syslog_ng.elasticsearch.ElasticSearchDestination")
  15.  
  16.     option("index", "syslog-ng_${YEAR}.${MONTH}.${DAY}")
  17.     option("type", "test")
  18.   );
  19. };
  20.  
  21.  
  22. source s_local {
  23.         system();
  24.         internal();
  25. };
  26.  
  27.  
  28. destination d_local {
  29.         file("/var/log/jacekmessages");
  30. };
  31.  
  32. log {
  33.         source(s_local);
  34.  
  35.         destination(d_local);
  36.         destination(d_elastic);
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement