linux - Forwarding logs to splunk/graylog from syslog-ng -


i want forward apache , tomcat logs central log server.(splunk/graylog)

i have client systems syslog-ng running.

how can forward logs?

is necessary parse logs? can't forward logs are? have edit apache configuration also?

i trying done last 1 week. had created question regarding this. no hep found. forwarding log via syslog-ng please this.

update1: latest syslog-ng.conf

source s_all {   internal();   unix-stream("/dev/log");   file("/proc/kmsg" program_override("kernel: "));   file("/var/log/apache/access.log" follow_freq(1) flags(no-parse));   file("/var/log/apache/error.log" follow_freq(1) flags(no-parse)); }; destination d_splunk {   udp("ec2-xxx.xxx.xxx.xxx.compute-1.amazonaws.com" port(514)); }; log {   source(s_all); destination(d_splunk); }; 

install universal forwarder central log server (i'm assuming different box splunk instance). monitor path of syslog. don't know syslog-ng logs should written contains hostname in path somewhere /var/log/my_host_one/apache/access.log. way splunk use correct hostname (see host_segment in inputs.conf).

also test make sure uf correctly connecting main splunk instance (configured via outputs.conf), try search uf's internal logs index=_internal host=your_uf_host.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -