[kwlug-disc] Scripting in Linux and unit.d

Khalid Baheyeldin kb at 2bits.com
Tue Jan 10 22:13:13 EST 2012


On Tue, Jan 10, 2012 at 10:00 PM, Paul Nijjar <paul_nijjar at yahoo.ca> wrote:

> John makes another good point. If you can configure rsyslog on this
> server then splitting up entries using regular expressions is pretty
> straightforward. I think the Users.log is going to be the hardest
> unless there is a fixed string you can match against.
>

Depending on what you are trying to do, you can do away with rsyslog,
and use logrotate, with a prerotate and/or postrotate script.

See how to do that here:

http://linuxers.org/howto/howto-use-logrotate-manage-log-files
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
For every complex problem, there is an answer that is clear, simple, and
wrong." -- H.L. Mencken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20120110/67c37ff6/attachment.htm>


More information about the kwlug-disc mailing list