🐧 svlogd pattern matching doesn't seem to work as documented
Nachrichtenbereich: 🐧 Linux Tipps
🔗 Quelle: reddit.com
I'm playing around with trying to filter some noisier bits out logs for strongswan VPNs that it doesn't filter itself, and I'm using runit to manage the process.
Looking at https://man.cx/svlogd(8) says svlogd supports filtering for logs with its own sort of syntax, but I can't even get basic things to filter out, and I'm not sure why:
/service/strongswan$ cat log/config # max log size in bytes (100k) s100000 # number of logs to save n1 # filter some needless noise out of logs -*] vici*
This is the config I have now, with the intention of filtering out the following example lines:
Aug 17 22:21:23 13[CFG] vici client 99 connected Aug 17 22:21:23 13[CFG] vici client 99 registered for: list-sa Aug 17 22:21:23 12[CFG] vici client 99 requests: list-sas Aug 17 22:21:23 15[CFG] vici client 99 disconnected
Anyone have any ideas why that pattern isn't working? My interpretation of that manpage is that the pattern should match everything up to a ]
then vici
, and then anything after it.
[link] [comments] ...
📰 Matching DNA To a Diet Doesn't Work
📈 33.85 Punkte
📰 IT Security Nachrichten
🔧 An Interesting Perl Pattern That Doesn't Work
📈 29.74 Punkte
🔧 Programmierung
🔧 Find What You Need: Pattern Matching in SQL
📈 28.83 Punkte
🔧 Programmierung
🔧 Dica C#: Pattern Matching Enhancements
📈 28.83 Punkte
🔧 Programmierung
🎥 HPR2888: Pattern matching in Haskell
📈 28.83 Punkte
🎥 Podcasts
🔧 Binary pattern matching <<1::1, 0::1, 1::1>>
📈 28.83 Punkte
🔧 Programmierung
🔧 Mastering Pattern-Matching in Elixir
📈 28.83 Punkte
🔧 Programmierung
🔧 Expressive Code with Pattern Matching
📈 28.83 Punkte
🔧 Programmierung
🔧 Improve Your C# Code with Pattern Matching! 🚀
📈 28.83 Punkte
🔧 Programmierung
🔧 Understanding Pattern Matching in Java
📈 28.83 Punkte
🔧 Programmierung
🐧 Pattern matching accepted for Python
📈 28.83 Punkte
🐧 Linux Tipps
🔧 Pattern Matching for Switch in Java 21
📈 28.83 Punkte
🔧 Programmierung