Skip to content

Instantly share code, notes, and snippets.

@lox
Created October 27, 2010 02:56
Show Gist options
  • Save lox/648340 to your computer and use it in GitHub Desktop.
Save lox/648340 to your computer and use it in GitHub Desktop.
syslog-ng configuration for loggly
# loggly
source s_all {
file ("/proc/kmsg" log_prefix("kernel: "));
unix-stream ("/dev/log");
internal();
file("/mnt/log/apache2/error.log" follow_freq(1) flags(no-parse));
};
destination d_loggly {
tcp("logs.loggly.com" port(14791));
};
filter f_loggly {
facility(authpriv);
};
log {
source(s_all); filter(f_loggly); destination(d_loggly);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment