On Thu, 7 Jun 2018, Peter Horvath wrote:

so how would you go about merging these two templates
template(name="OnlyMsg" type="string" string="%msg:::drop-last-lf%\n")

template(name="KubernetesLogFormat" type="string"
       string="%msg:2:$%\n")

what do you want the result to be?

give a sample log message and show what you want the result to be.

for example, if the log message is "time host foo[pid] bar baz"

'combinding' these formats could end up with

' bar baz bar baz\n'

for example


On 7 June 2018 at 17:14, David Lang <[email protected]> wrote:

a template says what the log message should look like for that action, how
would you use three templates? write the log three times? If so, just
define three actions, one with each template (or better still, can you make
one template that includes everything three times in the different formats
so you don't have to deal with the issues of locking between different
actions)

or am I misunderstanding your question?

David Lang


_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to