I'm using the Topbeat to monitor the server resources. I need to configure the Logstash output to send e-mail when some file system is over than 70%.
But I'm not sure about the sintax on the condition expression:
if [fs.used_p] >= "70" {
email {
....
Anybody know if it is correct to put the varialbe "fs.used_p" with dot or I should put something like that: %{[fs][used_p]}?
And is it correct to use the condition with number? Because the variable fs.used_p on topbeat has your value with % (Eg. 30%). So I don't know if the expression >= "70" is gonna work.
Topbeat uses floating points between 0 and 1 to represent percentages. So the condition should be some thing like >= 0.7, but I'm not sure about the exact Logstash syntax.
At this point, you might get better answers for this in the Logstash section of the forums. Configuration looks good to me, the error doesn't seem to be related to the file, looks more like a bad logstash installation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.