<decoder name="web-accesslog-custom">
<type>web-log</type>
<program_name>nginx|apache</program_name>
</decoder>
<decoder name="web-accesslog-custom">
<type>web-log</type>
<prematch>^\S+ \S+ \S+ \.*[\S+ \S\d+] "\w+ \S+ HTTP\S+" </prematch>
</decoder>
<decoder name="web-accesslog-custom-ip">
<type>web-log</type>
<parent>web-accesslog-custom</parent>
<regex>^(\S+) \S+ \S+ \.*[\S+ \S\d+] "(\w+) (\S+) (HTTP\S+)" (\d+) (\d+) "(\.+)" "(\.+)"</regex>
<order>srcip, http.method, url, http.version, http.status, rsize, referrer, user.agent</order>
</decoder>
<decoder name="web-accesslog-custom-ip">
<type>web-log</type>
<parent>web-accesslog-custom</parent>
<regex>^(\S+) \S+ \S+ \.*[\S+ \S\d+] "(\w+) (\S+) (HTTP\S+)" (\d+) (\d+) "(\.+)" "(\.+)" "(\.+)"</regex>
<order>srcip, http.method, url, http.version, http.status, rsize, referrer, user.agent, client.ip</order>
</decoder>
<decoder name="web-accesslog-domain">
<type>web-log</type>
<parent>web-accesslog-custom</parent>
<prematch>^\S+.\D+</prematch>
<regex>^\S+ (\S+) \S+ \.*[\S+ \S\d+] "(\w+) (\S+) HTTP\S+" (\d+) </regex>
<order>srcip, protocol, url, id</order>
</decoder>
<decoder name="web-accesslog-ip-ip">
<type>web-log</type>
<parent>web-accesslog-custom</parent>
<prematch>^\S+ \S+.\S+ |^\S+ \S+:\S+ </prematch>
<regex>^(\S+) (\S+) \S+ \.*[\S+ \S\d+] "(\w+) (\S+) HTTP\S+" (\d+) </regex>
<order>srcip2, srcip, protocol, url, id</order>
</decoder>
<decoder name="web-accesslog-glpi">
<type>web-log</type>
<parent>web-accesslog-custom</parent>
<prematch>^\S+ - - [\d+/\w+/\d+:\d+:\d+:\d+ +\d+] "\S+ \S+ HTTP/\.+"</prematch>
<regex>^(\S+) - - [(\d+/\w+/\d+:\d+:\d+:\d+) +\d+] "(\S+) (\S+) HTTP/(\.+)" (\d+) (\S+) "(\.+)" "(\.+)"</regex>
<order>srcip,timestamp,operation, route, http_version, rcode, rsize, url, browser</order>
1.2.3.4 - - [26/Feb/2024:18:13:00 +0200] "GET / HTTP/1.1" 405 150 "-" "user agent placeholder" "5.6.7.8"
**Phase 1: Completed pre-decoding.
full event: '1.2.3.4 - - [26/Feb/2024:18:13:00 +0200] "GET / HTTP/1.1" 405 150 "-" "user agent placeholder" "5.6.7.8"'
**Phase 2: Completed decoding.
For the rules, I made another configuration on a test machine that worked, but I haven't added it on the production machine, which has the problem I mentioned.
The problem here is that the old decoder doesn't seem to be excluded and the new custom decoder isn't shown even though it can overwrite the default decoder even without the exclude part. I have tried: