Skip to content

Instantly share code, notes, and snippets.

@alherd-by
Created June 30, 2016 12:28
Show Gist options
  • Save alherd-by/2a13ee9627e244b0ee614265fdf8215c to your computer and use it in GitHub Desktop.
Save alherd-by/2a13ee9627e244b0ee614265fdf8215c to your computer and use it in GitHub Desktop.
source s_nginx { udp(); };
#source s_nginx { file("/var/log/nginx/my-current/access.log"); };
filter f_local7 { facility(local7); };
destination d_loghost {tcp("10.74.0.139" port(1500));};
#destination d_loghost {file("/tmp/access.log");};
log { source(s_nginx); filter(f_local7); destination(d_loghost); };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment