Hey people,
I'm trying to get multiple "distinct count where..." working but don't know where to start.
The idea is something like
index="servers"
|stats
where("Agent1" = "Yes", dc(Hostname)) as "Agent1 Installed"
where("Agent2" = "Yes", dc(Hostname)) as "Agent2 Installed"
where("Agent3" = "Yes", dc(Hostname)) as "Agent3 Installed"
The data in the file is set up like this and can't be changed 😞
Patch|Hostname|Agent1|Agent2|Agent3
123 |host1 |yes |yes |no
234 |host2 |yes |no |no
345 |host3 |no |no |no
456 |host1 |no |yes |yes
567 |host3 |yes |yes |yes
The idea is to get the number of hosts with the Agent installed with all patches.
Any help will be greatly appreciated!
┈┈┈┈┈┈▕▔╲
┈┈┈┈┈┈┈▏▕
┈┈┈┈┈┈┈▏▕▂▂▂
▂▂▂▂▂▂╱┈▕▂▂▂▏
▉▉▉▉▉┈┈┈▕▂▂▂▏
▉▉▉▉▉┈┈┈▕▂▂▂▏
▔▔▔▔▔▔╲▂▕▂▂▂I
... View more