I want to collect ALL events of level Critical, Error and Warning + from level Information JUST events id 1074, 6005, 6006, 6008. (Due to monitoring restart/shutdown of servers).
How to configure it?
I tried this, but it did not work :
- name: System
ignore_older: 10h
level: critical, error, warning
level: information
event_id: 1074, 6005, 6006, 6008
I received only Information events id 1074, 6005, 6006, 6008 but NO events of Critical, Error and Warning level
@RRadim I'm not 100% on this, but I believe the issue is that you have two entries for level. When the YAML is being parsed, it is probably overwriting itself with information thus you are only getting information level events.
Assuming you do want information as well, try this instead:
Firstly, make sure the events you want have different levels : info, error etc...
Probably your events generate only with informational level - and it's a case I see a lot.
Please have a check in your event viewer directly on your machine to analyze that point first.
Secondly, you can just drop the 'level' section in your conf if you want everything.
Based on what I understand, you want only the 4 events Id's ( 1074, 6005, 6006, 6008) right ?
And these 4 events exist with different 'level'.
You can try this :
- name: System
ignore_older: 10h
event_id: 1074,6005,6006,6008
As I told, you need to analyze first if you have different level for the mentioned events in your event viewer.
Maybe I misunderstand what you're looking for...
Which means : we drop all events with information level - except from the 4 events.
Note : I didn't test it ... so maybe it's not working, but the logic is here.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.