Splunk Search

How to chart each data point by another field without any stats function transformation?

albyva
Communicator

I think I'm having a brain fart. I want to chart each data point by an address. I don't want (avg, sum, max, min, etc). I want a point on a chart for each dataset. What command am I'm missing? I tried | chart values(DATA) by address ...and all I get is all the data in a block per address.

Thanks,

data address

1 address-a

2 address-a

3 address-a

1 address-b

2 address-b

3 address-b

Tags (3)
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

If you really want a point for each event then you can do something like this:

base search | xyseries _time address data

I think that's an ugly approach though, mostly because that does not give you a linear time x-axis. Silence in your data disappears in the chart instead of displaying space for that silence.

Do you really need a point for each event? Maybe you just want more points than you get by default (up to 100), consider increasing that like this:

base search | timechart bins=500 avg(data) by address

Interested in high values, but don't want to be misled by single huge maximums? Consider using a percentile function such as p95(data) that gives you the 95th percentile value for each time bucket, an often more useful "high" value than a simple max().

If you have drilldowns into single addresses you could consider putting max(data) avg(data) min(data) into one chart... just don't do that by address for many addresses though, the chart would get very messy.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

If you really want a point for each event then you can do something like this:

base search | xyseries _time address data

I think that's an ugly approach though, mostly because that does not give you a linear time x-axis. Silence in your data disappears in the chart instead of displaying space for that silence.

Do you really need a point for each event? Maybe you just want more points than you get by default (up to 100), consider increasing that like this:

base search | timechart bins=500 avg(data) by address

Interested in high values, but don't want to be misled by single huge maximums? Consider using a percentile function such as p95(data) that gives you the 95th percentile value for each time bucket, an often more useful "high" value than a simple max().

If you have drilldowns into single addresses you could consider putting max(data) avg(data) min(data) into one chart... just don't do that by address for many addresses though, the chart would get very messy.

albyva
Communicator

Thanks.. The xyseries is just what I was looking for... The timechart or chart means I still have to look at my data as average, max, etc and I wanted the actual value and nothing else.

0 Karma

albyva
Communicator

Each event is timestamped. Specifically it's the "oddsets" from an NTP log. I want my chart to plot a point for each offset by the address. So that over time you can see the offset changes for each address that is reported.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

What do your events look like, and what should the resulting chart look like?

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...