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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...