My best solution is to add a field with the folder name:
source="C:\\..\\Logs\\*" | rex field=source ".*[//\\\]+(?<folder>.*)[//\\\]+.[a-zA-Z.0-9]*"
than i can use it for timechart for example:
source="C:\\..\\Logs\\*" | rex field=source ".*[//\\\]+(?<folder>.*)[//\\\]+.[a-zA-Z.0-9]*" | timechart count by folder
Hi Moritz,
assign your own sourcetype to the monitor stanza in inputs.conf. This way you can search for the sourcetype instead of searching for source like this:
sourcetype=YourNewMagicSourceType | ....
or you simply search for all of your logs like this:
source=YourLogFiles* | .....
hope this helps ...
cheers, MuS