Hi everyone,
need to make some adjustments to ms-dhcp-ipv4 decoder.
<decoder name="ms-dhcp-ipv4">
<prematch>^\d\d,\d+/\d+/\d\d\d\d,\d+:\d+:\d+,|</prematch>
<prematch>^\d\d,\d+/\d+/\d\d,\d+:\d+:\d+,</prematch>
<regex>^(\d\d),\d+/\d+/\d\d\d*,\d+:\d+:\d+,(\w+),(\S+)</regex>
<order>id,extra_data,srcip</order>
</decoder>
It decodes me id, extra_data with action taken (assign;Nack, etc), and srcip with all information together(ip, hostname, macaddress, etc).
I need a decoder that separates fields id, extra_data, scrip, hostname, macaddress, all other info.
How to achieve this? Been testing different regex, but with no luck.
Greetings