Splunk Search

time chart to show the number of widgets manufactured per reporting period

jhuysing
Explorer

Have a log with related event
One event has the number widgets made in the period and another event has the actual time taken to make the widgets in that period.

i can do a search and get a time chart of number of widgets and time used . But, what I want is a timechart  of the  actualtime/number of widgets  made..

How do i construct  a search to do that.

Labels (2)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

This? - Update your field names as necessary

search events
| timechart sum(number_of_widgets) as widget_count sum(creation_time) as creation_time 

 

0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...