Yes, you will need to HUP rsyslog if you replace the file it's reading.

what does graylog2 do with it's logs today? is there any option other than just writing to a file?

David Lang

On Wed, 10 Sep 2014, Nathan Hruby wrote:

We used rsyslog with the imfile option to hoover in httpd logs written
with cronolog and forward them to graylog.  worked well enough, though
we did need to hup it after cronolog switched the current logfile
sysmlink since it didn't read / recheck the file periodically.  This
was using the rsyslog in EPEL for centos5 a year ago, things may be
better now.

http://www.rsyslog.com/doc/master/configuration/modules/imfile.html

There's also this:
https://github.com/josegonzalez/beaver

As well as running a small logstash ingester/forwarder.

HTH,

-n

On Wed, Sep 10, 2014 at 2:53 PM, Yves Dorfsman <y...@zioup.com> wrote:

Anybody uses graylog2?

Is there a simple "forwarder" that can be configured to send a list of files
or directory to graylog2?

All the solutions I am finding are specific to apps (using log4j etc...) or
very amateurish, such as "tail -f blah | netcat -xxxx" without consideration
for when files are roated or when the shell running the tail dies. We are
evaluating different log aggregator with search facilities, and this makes
graylog2 a non-starter.

Is there really no way to do this? I find it odd considering the work that has
been done on the server side, and how much information there is about it out
there (so I assume it is used a lot).


Thanks.


--
Yves.
_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/




_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/

Reply via email to