Splunk Search

how to take the data if in the data with time stamp the value is separated with space.

pritamkumar01
Engager

my data for buffer use for a particular time is:
00:00:04: port 1, buffer 12221,
00:00:04: port 2, buffer 22,
00:00:04: port 3, buffer 3333,
00:00:04: port 4, buffer 0,
00:00:04: port 5, buffer 0,
00:00:04: port 6, buffer 0,
00:00:04: port 7, buffer 0,
00:00:04: port 8, buffer 122,

i want a graph of use of buffer by all ports at a timestamp.
kindly help .thanks in advance.

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You can extract your port and buffer values like this:

... | rex "port (?<port>\d+), buffer (?<buffer>\d+)"

and then chart that over time like this:

... | timechart sum(buffer) by port

I've chosen sum(), but you may also be looking for avg() instead depending on your requirements.

Once you're happy with the field extraction within the search you should move it to the configuration, go to Settings -> Fields -> Field Extraction and add the expression there for your sourcetype, without the double quotes.

pritamkumar01
Engager

thanks for the help Mr Martin.

0 Karma
Get Updates on the Splunk Community!

New Case Study Shows the Value of Partnering with Splunk Academic Alliance

The University of Nevada, Las Vegas (UNLV) is another premier research institution helping to shape the next ...

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

October 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...