New to Zabbix but picking up steam quickly. Here's the question:
I'm monitoring a Windows Event Log and it's coming in fine, but I on;y need 3 pieces of info from it and want to create 'fields' with those pieces of information by extracting them from the log with a regex so that they can be shown in a table in Grafana later.
So the log looks like this:
This log come from this item in the template: eventlog[Microsoft-Windows-TerminalServices-LocalSessionManager/Operational,,,,21|22,,skip]
Remote Desktop Services: Shell start notification received:
User: DOMAIN\username
Session ID: 81
Source Network Address: 123.123.123.123
The info in bold are the pieces I want to extract using item preprocessing with a regex - I have the regex's written and working in regex101.
Using the info from the event above I posted - here's how it looks when I test:
When I put 1 regex like this I get the expected data back as DOMAIN\username:


When I put 1 regex like this I get the expected data back as 123.123.123.123:


But when I put them together - the 2nd one ALWAYS fails. What I 'think' is happening is that the regex extracts the first value and attemts to extract the next regex from step 1 instead of the event in the event log. Which is not how I'd expect it to work. See screenshots:

I'm monitoring a Windows Event Log and it's coming in fine, but I on;y need 3 pieces of info from it and want to create 'fields' with those pieces of information by extracting them from the log with a regex so that they can be shown in a table in Grafana later.
So the log looks like this:
This log come from this item in the template: eventlog[Microsoft-Windows-TerminalServices-LocalSessionManager/Operational,,,,21|22,,skip]
Remote Desktop Services: Shell start notification received:
User: DOMAIN\username
Session ID: 81
Source Network Address: 123.123.123.123
The info in bold are the pieces I want to extract using item preprocessing with a regex - I have the regex's written and working in regex101.
Using the info from the event above I posted - here's how it looks when I test:
When I put 1 regex like this I get the expected data back as DOMAIN\username:
When I put 1 regex like this I get the expected data back as 123.123.123.123:
But when I put them together - the 2nd one ALWAYS fails. What I 'think' is happening is that the regex extracts the first value and attemts to extract the next regex from step 1 instead of the event in the event log. Which is not how I'd expect it to work. See screenshots:
Comment