I have a url and I need to find out if this site is up or not. I was trying to do something like below. and then I thought I could get header's statuscode to determine its status.
But this url returns 'text/html' response, because of which logstash returns an error 'Json parsing error'.
Thanks for the quick reply.
Now there is no error, but I don't see any statuscode field. Like when we do a http request from node.js or postman. We get statusCode like 200 or 404.
Is there anything like that in logstash?
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.