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
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.
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
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
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