Hello to everyone.
After reading the post linked down below, I tried to use the same approach for sourcetypes from Windows hosts.
To do it I used this regex like a sourcetype:
(?::){0}*WinEventLog
But it didn't work, and I think that I misunderstood something.
Is anyone able to explain to me what was wrong?
Hi
I think that your "regex" should be
(?::){0}WinEventLog*
as the changing part is in the end of ST name.
r. Ismo
Hi
I think that your "regex" should be
(?::){0}WinEventLog*
as the changing part is in the end of ST name.
r. Ismo
Thank you for your answer
I tried this one before posting the question, but it didn't work
Now, after I removed another extraction rules for each sourcetype, I decided to give it one more try
And now it's working as expected
I feel myself like dumm but happy 😃
Up
What is your usecase (it could be that the other post does not apply for you)?
All sourcetypes from Windows EventLog start with "WinEventLog".
For example:
It isn't necessary to use one extraction rule instead of per sourcetype because there aren't many different Windows sourcetypes in our production.
But I think that it's more convenient for me.
In my usecase I want to extract the Severity field, which I use for log coloring (global eventtype rule)
Below, you can see an example of a specific sourcetype:
[WinEventLog:Application]
EXTRACT-Severity = \sType=(?<Severity>\w+)