Skip to content

Instantly share code, notes, and snippets.

@iroller
Created November 5, 2012 11:11
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/9f5619573d2f3e9f071c to your computer and use it in GitHub Desktop.
Save iroller/9f5619573d2f3e9f071c to your computer and use it in GitHub Desktop.
options {
threaded (yes);
time_reopen (10);
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 (3600);
stats_level (1);
log_msg_size (16384);
log_fifo_size (8000000);
};
source s_local {
file ("/proc/kmsg" program_override("kernel: "));
unix-stream ("/dev/log");
};
source s_local_internal {
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(200) so_rcvbuf(1024000) log_iw_size(20000) so_keepalive(yes) log_fetch_limit(100));
syslog(ip(0.0.0.0) transport("tcp") port(5141) max-connections(200) log_iw_size(20000) flags("threaded") log_fetch_limit(100)); # <<< this one is currently in use
};
dst.sql;d_mysql_example_custom#0;mysql,10.0.0.1,3306,syslog_production,custom_example_${HO;a;stored;1000
dst.sql;d_mysql_example_custom#0;mysql,10.0.0.1,3306,syslog_production,custom_example_${HO;a;dropped;0
dst.file;d_app_example_custom#0;/logs/example/custom.log;o;stored;0
dst.file;d_app_example_custom#0;/logs/example/custom.log;o;processed;351305
dst.file;d_app_example_custom#0;/logs/example/custom.log;o;dropped;0
destination;d_mysql_example_custom;;a;processed;331953
destination;d_app_example_custom;;a;processed;351305
No custom options for "dst.file;d_app_example_custom" destination.
Custom options for sql logging.
Destination:
flags(explicit-commits)
flush_lines(500) # how many lines are flushed to a destination at a time
flush_timeout(10000) # time in milliseconds
Log:
flags(flow-control);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment