Splunk Search

group values in search

wsw70
Communicator

Hello,

I have data in the form of a date,server,events triplet. The fields are correctly extracted and assigned.

date1,server1,3
date2,server2,5
date3,server3,2
date4,server4,2

server1, server2 and server4 are all part of the same group, EMEA. server3 is not part of any group.

I am looking at ultimately creating a bar chart with the groups and non-grouped servers all together - with the number of events summed up:

EMEA      |---|-----|--|
server3   |--|

The bars are stacked and the stack is made up by the servers in a group.

The closest I found is using lookups with an OUTPUT clause (lookup OSServersRegions.csv server OUTPUT region) -- this works fine except that I get three pairs (region,number). I do not know how to chart so that the results are stacked by server within a region.

In other words what I get today is

EMEA      |----------|
AP        |--|

What would be the magic incantation to get the stacks? 🙂

Thanks!

0 Karma
1 Solution

Ayn
Legend

Given a bunch of servers with their respective event count and their region, how about this:

... | chart count over region by server

View solution in original post

Ayn
Legend

Given a bunch of servers with their respective event count and their region, how about this:

... | chart count over region by server

wsw70
Communicator

Wonderful, thanks. I still have a hard time completely understanding the philosophy behind the general splunk syntax

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...