Splunk Search

help to timechart after an append command

jip31
Motivator

hello

I use a search with the structure like below in order to timechart events from 2 different search

As you can see, I need to perc90 the events before doing a timechart

My question concerns the timechart 

Is there a way to timechart the events without using an avg function?

index=toto
| search abc <=1000
| stats perc90(abc) as "titi" by _time 
| append 
    [ search index=toto 
    | search abc >= 1000 
    | stats perc90(abc) as "tutu" by _time ] 
| timechart span=1m avg("titi") as "titi", avg("tutu") as "tutu"

Thanks

Labels (1)
Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @jip31,

did you tried something like this?

 

index=toto
| eval kind=if(abc<=1000,"titi","tutu")
| timechart perc90(abc) BY kind 

 

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jip31,

did you tried something like this?

 

index=toto
| eval kind=if(abc<=1000,"titi","tutu")
| timechart perc90(abc) BY kind 

 

Ciao.

Giuseppe

0 Karma

jip31
Motivator

Hi Gcusello, good idea thanks

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jip31,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...