i would like to store my translated field as "dhcp.EventName" but it seems not to work, the field is never created or filled. I haven't found anything in the documentation about this.
You convert dhcp.EventID to an integer before the lookup. So the values 00, 01, 02 will likely not match as dhcp.EventID will contain 0, 1, 2. The values that are not 0-padded should be fine.
Add fallback => "UNKNOWN" to your translate filter. This will at least let you know whether the lookup is failing to find a match, or if the lookup is not even happening.
I would also recommend getting rid of the override setting unless the field and destination are the same field.
Here are a couple of examples that work fine for me...
I never use dot notation to refer to nested fields. Try changing %{NUMBER:dhcp.EventID} to %{NUMBER:[dhcp][EventID]}. I realize that the grok debugger allows dot notation, but the grok debugger has a few inconsistencies with Logstash itself. The reason I wonder about this is that your sample data shows an underscore for the field name: "dhcp_EventID": 11,
If the above is not the issue, I question whether the "dhcpservice" in [tags] is actually matching.
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.