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!

Don't wait! Accept the Mission Possible: Splunk Adoption Challenge Now and Win ...

Attention everyone! We have exciting news to share! We are recruiting new members for the Mission Possible: ...

Unify Your SecOps with Splunk Mission Control

In today’s post, I'm excited to share some recent Splunk Mission Control innovations. With Splunk Mission ...

Data Preparation Made Easy: SPL2 for Edge Processor

By now, you may have heard the exciting news that Edge Processor, the easy-to-use Splunk data preparation tool ...