| Example 11.6. Using the indent-multi-line template function |
|---|
|
The following example writes multi-line messages into a text file. destination d_file {
file ("/var/log/messages"
template("${ISODATE} ${HOST} $(indent-multi-line ${MESSAGE})\n") );
}; |
Use two log statements, with filters that control whether a specific message us to be parsed or not.
On Mar 31, 2014 8:49 PM, "Justin B" <justinkala@gmail.com> wrote:______________________________________________________________________________Need information on this.I am using the CSV-PARSER and I want to put a condition that if a column is empty do not apply the CSV-PARSER but write the line.Primarily i get the application logs and i dont want to apply the CSV-Parser on those log lines where the whole error stack is there.Can someone help on this??
--
Kaladhar
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq