How to set up mysql storage for certain rsyslog input matches?

Posted by ylluminate on Server Fault See other posts from Server Fault or by ylluminate
Published on 2011-11-18T09:00:11Z Indexed on 2011/11/18 9:56 UTC
Read the original article Hit count: 277

Filed under:
|
|
|
|

I'm draining various logs from Heroku to an rsyslog linux (ubuntu) server and am starting to have a little more to bite off than I can chew in terms of working with my log histories.

I am needing to be able drill back in time based on more flexible details and more flexible access than what the standard syslog file(s) provide.

I'm thinking that logging to mysql may be the correct approach, but how do I set this up such that it pulls only certain log entries into a table based on an identified? For example, I see a long hex string identifying each log entry from a certain Heroku app instance. I assume that I can just pipe those into the mysql socket vs ALL rsyslog input into mysql...

Could someone please direct me to a resource that can walk me through the process of setting something like this up or simply provide some details that can help? I have 15+ years of Unix experience so I just need some nudging in the right direction as I've not really done a tremendous amount of work with syslog daemons previously in terms of pooling various servers into one.

Additionally, I'd be interested in any log review tools that could make drilling through log arrangements like this more handy for developers.

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu