i receive from logstash error this kind of error:
:exception=>#<RuntimeError: Invalid FieldReference: []
this pipeline transform a csv , in the line i've [ ] value a couple of field.
for exaple the line can be:
field1,field2,field3,field4
value1,value2,[ ] ,"value4"
How can I handle this kind of value in the configuration?
Tried some controls but all fails i'm going crazy.
The csv filter will always call event.set if you have told it to store that column, and event.set will always try to dereference the [ ]. You could try using mutate+gsub to remove it before calling the csv filter.
The final solution , as mentioned by Badger remove all [ ] from the original message before the CSV parsing (substituting with a space) if you only trim it will not work:
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.