Skip to content

Instantly share code, notes, and snippets.

@iroller
Created October 31, 2012 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iroller/c4688693f8b9851c6a41 to your computer and use it in GitHub Desktop.
Save iroller/c4688693f8b9851c6a41 to your computer and use it in GitHub Desktop.
syslog-ng configuration
Ubuntu 10.04.2 LTS \n \l
Linux syslog-01 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux
% free -m # while syslog-ng is working without debug/trace enabled
total used free shared buffers cached
Mem: 7990 7948 41 0 178 6817
-/+ buffers/cache: 951 7038
Swap: 2047 135 1912
options {
threaded (yes);
time_reopen (10);
log_fifo_size (300000);
chain_hostnames (off);
use_dns (yes);
dns_cache (yes);
dns_cache_size (2000);
dns_cache_expire (86400);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);
stats_freq (60);
log_msg_size (16384);
};
source s_local {
file ("/proc/kmsg" program_override("kernel: "));
unix-stream ("/dev/log");
internal();
};
source s_remote {
udp(ip(0.0.0.0) port(514) so_rcvbuf(1024000));
tcp(ip(0.0.0.0) port(5140) max-connections(1024) so_rcvbuf(1024000) log_iw_size(102400) so_keepalive(yes));
syslog(ip(0.0.0.0) transport("tcp") port(5141) max-connections(4096) log_iw_size(409600) flags("threaded"));
};
[skipped tons of filters, log statements, etc.]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment