- Splunk Operational Intelligence Cookbook
- Josh Diakun Paul R Johnson Derek Mock
- 150字
- 2025-04-04 16:53:02
How to do it...
Follow these steps to search for the most used web browsers:
- Log in to your Splunk server.
- Select the Search & Reporting application.
- Ensure that the time range picker is set to Last 24 hours and type the following search into the Splunk search bar. Then, click on Search or hit Enter:
index=main sourcetype=access_combined | eval browser=useragent | replace *Firefox* with Firefox, *Chrome* with Chrome, *MSIE* with "Internet Explorer", *Version*Safari* with Safari, *Opera* with Opera in browser | top limit=5 useother=t browser
- Splunk will return a tabulated list of the top five most used web browsers on our site, by count and percent age, as shown in the following screenshot:

- Save this search by clicking on Save As and then on Report. Give the report a name of cp02_most_used_webbrowsers and click on Save. On the next screen, click on Continue Editing to return to the search.