Splunk Search

Basic commands with SPL

123michi19
Explorer

Hi @all,

I'm a little bit helpless at the beginning of SPLUNK.

I tried to do simple queries like:

  • Request statuscode and make a timechart with
    index="name" | timechart count(http_status=200)
  • Count pageviews of a specified url
    index="name" | timechart count (cs_uri_stem)

Both commands doesn't work. Can you please help me finding and execute the right commands?

Thank you 🙂 BR Michael

Tags (1)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

In both cases:

index=name http_status=200 | timechart count

Just change cs_uri_stem before pipe.

R. Ismo

View solution in original post

123michi19
Explorer

Thanks for your help 🙂

0 Karma

skoelpin
SplunkTrust
SplunkTrust

You should only pass a field into your function, you're passing a field and its value. So for the first one, it would look like

index="name" http_status=200 | timechart count

Second one should work since you're passing a field. Verify the field is spelled right and in the timerange of your data

isoutamo
SplunkTrust
SplunkTrust

In both cases:

index=name http_status=200 | timechart count

Just change cs_uri_stem before pipe.

R. Ismo

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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 ...