How to find length/size of 'tag' attribute in logstash(output section)?
My scenario : All my errors are automatically puts into the 'tag' attribute by logstash & thats why I wanted to know the size of 'tag' attribute so that I will make my decision in output section whether parse record having some error or successfully done the parsing.
Ok .... but how do I increment that field in filter section, I mean how to handle it in filter section. Can you please give me some example code so that it will be more easy for me to implement it.
For example:
Data and beats_input_codec_plain_applied are added in the tags in my logstash code. But any parsing error in csv or JSON it give _csvparsefailure and _jsonparsefailure in tags field.
I want to implement output logic such a way that if two tags found insert in ElasticIndex and more than 2 tags insert in Errorindex
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.