[Puppet Users] agent prepend every line with var

2013-06-05 Thread Marc Lucke
How would I prepend every log line output with a [var] when I run: var= puppet agent -t -o -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr

Re: [Puppet Users] agent prepend every line with var

2013-06-05 Thread David Schmitt
puppet agent -t -o | perl -pe 'print "myvar=";' Regards, David On 2013-06-05 15:16, Marc Lucke wrote: How would I prepend every log line output with a [var] when I run: var= puppet agent -t -o -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] agent prepend every line with var

2013-06-05 Thread Marc Lucke
Thanks David, What about --logdest syslog? I was really looking to alter the log format. - Marc On 06/06/2013, at 5:53 AM, David Schmitt wrote: > > puppet agent -t -o | perl -pe 'print "myvar=";' > > Regards, David > > On 2013-06-05 15:16, Marc Lucke wrote: >> How would I prepend every lo

Re: [Puppet Users] agent prepend every line with var

2013-06-06 Thread David Schmitt
Either add a "| logger ..." or you really have to get fancy, add a report processor and do your own logging in ruby at the end of the agent run. I haven't seen a way to actually attach to the logging itself. But then, I haven't looked very hard either. Regards, David On 2013-06-05 22:28, Ma

Re: [Puppet Users] agent prepend every line with var

2013-06-06 Thread Marc Lucke
Thanks David. That it's not simplistic is often a good indicator that you're abusing design which is another reason to re-evaluate the idea. I was hoping for something like apache2's LOGFORMAT or similar. Regards - Marc On 06/06/2013, at 6:23 PM, David Schmitt wrote: > Either add a "| logge