Closed leosunmo closed 4 years ago
This is unfortunately a limitation in the current implementation of the ignore functionality, i.e. only top-level fields can be ignored. This should be addressed by allowing subfields to be ignored via the Logstash syntax ("[field][subfield]"). Until this has been done I can document the limitation in README.md.
Thanks for the quick reply Magnus. I'll try to work with it the way it is at the moment and maybe take a look at adding in the functionality myself.
Fixed in PR #70.
I've been trying to figure out how to ignore sub-fields (if that's the correct word for it).
The easiest way to show what I mean is probably to paste the testcase and diff output.
First the diff:
As you can see I need to ignore
logstash.processing.duration
,logstash.processing.lag
andlogstash.index_time
at least.What I've tried is this:
Which didn't seem to work. If I put "logstash" in the ignore array it works and it ignores the whole "logstash" map, which could be the workaround, but I'd prefer to keep fields like
logstash.size
for example since it's a pretty good check to have.Let me know if I've missed something obvious here. In the meantime I'll try to read the code and figure out if it's possible.
Thanks in advance