Getting Data In

Class question

stromingj
New Member

Run a search in the metrics index over the last 15 minutes. Use the stats command to find the middle number, the average and the most frequent occurrence of the field called "UsedBytes". Use an 'as' clause to rename all your fields. Split by users. Add column totals, customize your totals label, and place it underneath the user column. Finally, ONLY evaluate UseBytes that are MORE THAN the value of 0. 

 

My string didnt work  (index=metrics | stats mode(UsedBytes), avg(UsedBytes), median(UsedBytes) as Bytes

I am new to Splunk and need some assitance. 

Labels (1)
0 Karma

to4kawa
Ultra Champion

I'm sorry.

0 Karma

to4kawa
Ultra Champion

| tstats mode(UsedBytes), avg(UsedBytes), median(UsedBytes) as Bytes sum(UsedBytes) as totals where index=metrics by user

stromingj
New Member

Doesnt run.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...