Regex Generator

web_shop's Avatar

web_shop

31 Oct, 2018 08:09 AM

Hi,
I really appreciate the work you have done and I need help using regex to extract the information I need from the logs.
I state that I do not know regex and I have already taken a look at the "tester", I would need a tool that will generate the regex according to the data I would like to extract.
A typical log could be this:

Oct 30 09:59:46 SysPass sshd[8271]: pam_unix(sshd:session): session closed for user root
Oct 30 09:59:46 SysPass sshd[8271]: pam_unix(sshd:session): session closed for user root
Oct 30 12:33:49 SysPass sshd[5231]: pam_unix(sshd:session): session closed for user root

I tried to use the one suggested on the page http://support.pimpmylog.com/kb/softwares/syslog-ng ,in debugging works but when i try to use it in config.user.php i get:

Oups!

Your access is disabled, you cannot view any log file.
Please contact your administrator.

Please Help me...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac