Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

logstash exec command #148

Closed
oweng opened this issue Aug 5, 2013 · 1 comment
Closed

logstash exec command #148

oweng opened this issue Aug 5, 2013 · 1 comment

Comments

@oweng
Copy link

oweng commented Aug 5, 2013

I have have been tasked with adding some exec commands to our logstash config. The command uses awk, so if I try running something like:

command => "cat /proc/loadavg | awk '{print $2}'"

However, I am not sure how to add this to my role, as it takes the above and turns it into:

'command' => 'cat /proc/loadavg | awk '{print $2}''

Is there a way to turn the outside "'" to quotes?

Thank you for your help.

Geoff

@paulczar
Copy link
Collaborator

Closing out due to inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants