Hi there
Is it possible that the regex checker/generator on
https://www.rsyslog.com/regex/ is broken? I'm unfortunately not familiar
with POSIX regex and thus would have benefited from this to test my regex.
But the "magic" button does not really do anything except reloading the
page. Only when I encapsulate my regex with quotes " then the regex string
gets deleted (i.e. field is empty afterwards). That is all that is
happening regardless of what options I try. The same "nothing" happens in
Chrome, Firefox and Safari (each in their latest version) on a macOS
system. I'm not using any adblockers or so with Firefox, only a password
manager add-on. Chrome only has the pw manager and duckduckgo extension
installed (the latter is now disable for rsyslog.com) and again the pw
manager extension in Safari. Hope it is not the password manager that broke
this site for me but I sincerely doubt it.
As regex I tried several things like:
[[:digit:]]\{1,3\}
[[:digit:]]
[[:digit:]]\?
[[:digit:]]?
Feb
^Feb
.*
If the page is broken does anyone know of a page like regex101.com that
supports POSIX regex where I can test my regex?
Or as last resort does anyone have the patience to help me with this? I
want to extract an IP address from the MSG part to write that into a
MariaDB. The writing to the DB works fine and I can basically extract
fields from the MSG with: '%msg:F,32:10%'
But unfortunately not every syslog message contains the same amount of
data/fields and thus the field numbers are not the same in every message.
Therefore I need to extract the IP address (plus some additional data but
when the IP part works I think I can get the rest to work as well) from the
MSG using regex.
Is this the correct regex to match an ip address?
[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}
Thank you very much for any help and
best regards,
Cyril Stoll
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
Is it possible that the regex checker/generator on
https://www.rsyslog.com/regex/ is broken? I'm unfortunately not familiar
with POSIX regex and thus would have benefited from this to test my regex.
But the "magic" button does not really do anything except reloading the
page. Only when I encapsulate my regex with quotes " then the regex string
gets deleted (i.e. field is empty afterwards). That is all that is
happening regardless of what options I try. The same "nothing" happens in
Chrome, Firefox and Safari (each in their latest version) on a macOS
system. I'm not using any adblockers or so with Firefox, only a password
manager add-on. Chrome only has the pw manager and duckduckgo extension
installed (the latter is now disable for rsyslog.com) and again the pw
manager extension in Safari. Hope it is not the password manager that broke
this site for me but I sincerely doubt it.
As regex I tried several things like:
[[:digit:]]\{1,3\}
[[:digit:]]
[[:digit:]]\?
[[:digit:]]?
Feb
^Feb
.*
If the page is broken does anyone know of a page like regex101.com that
supports POSIX regex where I can test my regex?
Or as last resort does anyone have the patience to help me with this? I
want to extract an IP address from the MSG part to write that into a
MariaDB. The writing to the DB works fine and I can basically extract
fields from the MSG with: '%msg:F,32:10%'
But unfortunately not every syslog message contains the same amount of
data/fields and thus the field numbers are not the same in every message.
Therefore I need to extract the IP address (plus some additional data but
when the IP part works I think I can get the rest to work as well) from the
MSG using regex.
Is this the correct regex to match an ip address?
[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}
Thank you very much for any help and
best regards,
Cyril Stoll
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.