Hi,
right now I am having trouble exluding characters like "/, :, 0-9" from my search. I want those excluded
I think best would be to look at the end of the name and if there is a "_" or a "/" then cut that and everything behind it so I can count the services for each host.
-bash
[aio/0]
[aio/1]
[aio/2]
[aio/3]
[async/mgr]
[ata/0]
[ata/1]
[ata/2]
[ata/3]
[ata_aux]
[bdi-default]
[bond0]
[cpuset]
[crypto/0]
[crypto/1]
[crypto/2]
[crypto/3]
What I want to see for example is "[aio]" and this search worked but I can't figure out how to add more characters to it.
sourcetype=ps OR sourcetype=top COMMAND | multikv | makemv delim="/" COMMAND
Can anyone help me here?
Thanks in advance and best regards
Mike
:::::::::::::::UPDATE:::::::::::::::
I made something that worked to a certain point (I'll get to that later) but is probably inefficient and not 100% the solution.
sourcetype=top COMMAND | multikv | rex field=COMMAND "^(? .+?)\/" | makemv delim="[" COMMAND | eval new_command = replace(COMMAND,"]","") | stats count by new_command
This seach lacks the ability to cut off two characters,
"_"
a number
... View more