Personally i just cat the file through netcat and into an input. You can use any syslog input if you pre-pend a syslog tag like <14> for cron.user, or make a plain text input.
Then just nc -u -w1 graylog2 514 <file If I can, i configure the program to use a custom logger to log all sorts of nice info in a gelf format, for example apache, squid etc.. I then cat it into graylog2 with netcat (nc). Brgds. Martin On Wednesday, 22 October 2014 18:06:33 UTC+2, Iain Keddie wrote: > > Hi, > > Please could you point me in the right direction for a simple way to get > text from an arbitrary file, into Graylog2? > > I have a 40+ text logfiles from a number of web application servers > (tomcat and weblogic), and I'd like to get the output sent to graylog. > > I can see that the GELF format seems a sensible transport format. Is there > standard a tool which can effectively "tail" a file and send the data to > graylog? > > I'd also like to send my graphite metrics to graylog as well as graphite, > to put some alerts in place, so any ideas in that area would be good. > > I can see some kind of logstash/greylog hybrid working, but I'd like to > stick to one platform if I can. > > Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "graylog2" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
