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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...