Open Kvrepo opened 5 years ago
This problem persists in version 7.8.1 with rename
plugin. The following configurations will trigger a syntax error :
mutate {
rename => {
"column1" => "field_name" # Comment
}
}
And
mutate {
rename => {
"column1" => "field_name"
# Comment
}
}
In Logstash 6.3.0 I've noticed the following phenomenon:
I have configuration A and configuration B. I run them with the following command:
Configuration A:
Configuration A yields the following error:
Configuration B:
Configuration B yields no errors:
The only difference between the two configurations is this part:
A:
B:
Am I right to assume that you can only use comments at the "beginning" of an add_field section, but not in the middle? Is it a bug or a feature?
Of course the obvious solution to this issue is avoiding these kinds of comments, but I wanted to gather some plus information about this before moving onward.
Udate: We have examined the issue further and come to the conclusion that this issue is present in every plugin which has a hash as a parameter (split, translate etc.).