Splunk Search

I have a chart with multiple lines and I want to "merge" them.

nugetchar
Explorer

Hi everyone!
Here is my problem:

Thanks to a search, I have multiple lines on the same graph. But now, I want to merge them in a single line.

My search:

index="dashboards" Step=-1 | bucket _time span=1s | convert timeformat="%H:%M:%S" ctime(_time) AS date_lancement | chart values(Test) as res by date_lancement, AgentID

I create a chart which gives me two lines (because I have two different AgentID in this case), and the values(Test) gives me, for each of them, a number during the time (date_lancement).

So let's say those two lines are f(x) and g(x), I want to draw (f+g)(x).

Any idea? 😃

Thanks in advance,

nugetchar.

Tags (1)
0 Karma

yannK
Splunk Employee
Splunk Employee

why not removing the AgentId field completely and display a timechart ?

index="dashboards" Step=-1 | timechart span=1s sum(Test) as res

0 Karma

MuS
Legend

Hi nugetchar

I hope I get you right; I think you will get what you want, if you change the formatting option for your chart to chart type area and stack mode to stacked.

alt text

hope this helps

cheers,

MuS

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...