Hi Jake, So what is your final solution to send different logs to your graylog server? I'm doing the monitoring exactly same as your case, but I dunno how to do it. Please help.
On Friday, January 25, 2013 at 12:31:23 AM UTC+8, Jake Nutt wrote: > > Thanks for the help, what version of nginx is this supported or where at > should I get this version? > > Thanks! > > On Tuesday, January 22, 2013 12:27:39 PM UTC-6, Jake Nutt wrote: >> >> So I'm a little confused on how to get a specfic log file to be sent to >> my graylog2 server. I've got my Server A (logs to be monitored) and Server >> B (graylog2 server) and so far normal system logs work great however I want >> to also get nginx logs from Server A. I've got the following in my Server A. >> >> /etc/rsyslog.conf >> >> $ModLoad imfile >> >> $InputFileName /var/log/nginx/jira.log >> $InputFileTag nginx: >> $InputFileStateFile stat-nginx-error >> $InputFileSeverity error >> #$InputFileFacility nginx >> $InputRunFileMonitor >> $InputFilePollingInterval 10 >> >> $template Graylog2Friendly,"<%PRI%> %TIMESTAMP:::sp-if-no-1st-sp% >> %HOSTNAME% %APP-NAME% %PROCID% %MSGID% %STRUCTURED-DATA% %msg%\n" >> $PreserveFQDN on >> >> *.* @Server B IP;Graylog2Friendly >> >> >> Should this be in a different file in /etc/rsyslog.d/50-default.conf? >> >> Thanks for the help >> > -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/3f48fbd7-958d-490c-bc38-4f2acaee5482%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.