This is completely different than the command you posted before.saleemthupsee wrote:i have verified once more the execution of the exec command by substituting the command echo to a text file. the parameters passed on the script through fields i.e %{fieldname} are not replaced by their field contents. i only have the output %{fieldname} in plain text in the text file instead of the contents of the fieldname being replaced in text file.
Anything wrong in my syntax. I checked through logstash 1.5 doc. to use %{fieldname} to gather the variables. the example is
command => "iptables -A INPUT -s %{clientip} -j DROP"
mine is :
exec {
command => "/usr/local/nagioslogserver/scripts/send_nrdp.sh -su http://192.168.97.2/nrdp -t ######## -H localhost -s %{channel_name} -S %{sh_status} -o testfromlogserver"
}
Is is possible for us to work one problem at a time?
to start with, I think you have an error in the command, this
Code: Select all
-su http://192.168.97.2/nrdp
Code: Select all
-u http://192.168.97.2/nrdp