On Wed, Nov 3, 2010 at 10:25 PM, <[email protected]> wrote: > On Wed, 3 Nov 2010, Sivan Greenberg wrote: > >> Hi Rainer, again! >> >> Now, actually to the real question ;) >> >> I would like to customize the fields rsyslog sends, or rather stores >> into MySQL. So for example, I would like to have a special ID that I >> could identify a group of related messages. >> >> Is that possible? Here[0] is is exemplified how to arrange the fields >> from rsyslog into mysql, so I would like to have something a long >> these lines, but to be able to add my own field so I can group by it >> instead of while executing an aftermath to analyze the mysql data for >> an id inside the message text. >> >> [0]: http://www.rsyslog.com/doc//ommysql.html > > as this page shows, you can setup your own template to put whatever > properties you want in whatever database columns (or tables) you want. >
Yes, but how do I control which parts of a message will be treated as which fields? You see, I would like to have a %request_id% which would be the last field before the actual message text for example. Cheers, -Sivan _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

