I want to perform different operation based on the entry in my log file.
2016-05-12 18:32:11,452 [http-8080-2] INFO AwsLifeCycleManager Aws VMProvisioning SUCCESS AssetID IP AssetName
If the operation is FAILED instead of SUCCESS then the log entry will be
2016-05-12 18:32:11,452 [http-8080-2] INFO AwsLifeCycleManager Aws VMProvisioning FAILED ERROR MESSAGE
Please help me to filter this logfile based on SUCCESS/FAILED using grok, so that I can list the successful operations and failed operations separately.
First up you need a grok pattern, try http://grokdebug.herokuapp.com/ for assistance on that.
Once you have the status field defined you can do the next step you're after.
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.