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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...