Good afternoon again :)
I want some advice to make sure I'm doing the right thing.
In order not to change all the rules, I wrote decoders like this:
<decoder name="postgresql_log">
<prematch type="pcre2">^\w+ \d+ \d+:\d+:\d+ \S+ postgres\[\d+\]: \[\d+\-\d+\] \d\d\d\d-\d\d-\d\d \d+:\d+:\d+.\d+ \S+ \[\d+\] \S+ </prematch>
<regex offset="after_prematch">^(\w+): </regex>
<order>status</order>
</decoder>
<decoder name="postgresql_log">
<program_name>^postgres</program_name>
</decoder>
<decoder name="postgres_fields">
<parent>postgresql_log</parent>
<regex>\S*@\S* (\w*)</regex>
<order>status </order>
</decoder>
how correct would that be?
many thanks for the help :)
пятница, 10 февраля 2023 г. в 17:39:13 UTC+6, Cedrick Foko: