This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
uls:agents:log_file_adapter [2025-12-09 10:47] uls [Configuration File] |
uls:agents:log_file_adapter [2025-12-09 10:54] (current) uls [Examples] |
||
|---|---|---|---|
| Line 848: | Line 848: | ||
| </file> | </file> | ||
| - | Test: | + | == Example2: Usage %{<n>,DIST} == |
| + | <file - /etc/uls/lfa4uls_messages.conf> | ||
| + | ... | ||
| + | # multipathd: checker failed nur senden, wenn innerhalb von 30 Sekunden kein | ||
| + | # multipathd: reinstated kommt | ||
| + | reg+ = %t %h multipathd:|%t %h kernel: device-mapper: multipath: | ||
| + | iformat = %t %h | ||
| + | regsplit = multipathd: ((checker failed path ([0-9][^ ]*) in map .*)|(([0-9].*): reinstated)) | ||
| + | splitvars = %s %1 %2 %s %-2 | ||
| + | consolidate = 30sF | ||
| + | test = %{2,DIST} > 0 | ||
| + | write = V;%F %T;%h;System;Logfileadapter;Log;"multipathd: %{1,FIRST}";_;all | ||
| + | ... | ||
| + | </file> | ||
| + | |||
| + | == Test Konfiguration == | ||
| Starte den lfa4uls direkt in der Kommandozeile (nicht als Dämon), | Starte den lfa4uls direkt in der Kommandozeile (nicht als Dämon), | ||
| zeige die Aktionen nur an (-s), starte das Durchsuchen der Datei (<inputfile>) | zeige die Aktionen nur an (-s), starte das Durchsuchen der Datei (<inputfile>) | ||