Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Splunk 7 Essentials - Third Edition

You're reading from  Splunk 7 Essentials - Third Edition

Product type Book
Published in Mar 2018
Publisher Packt
ISBN-13 9781788839112
Pages 220 pages
Edition 3rd Edition
Languages
Authors (4):
J-P Contreras J-P Contreras
Profile icon J-P Contreras
Steven Koelpin Steven Koelpin
Erickson Delgado Erickson Delgado
Profile icon Erickson Delgado
Betsy Page Sigman Betsy Page Sigman
Profile icon Betsy Page Sigman
View More author details

Table of Contents (10) Chapters

Preface Splunk – Getting Started Bringing in Data Search Processing Language Reporting, Alerts, and Search Optimization Dynamic Dashboarding Data Models and Pivot HTTP Event Collector Best Practices and Advanced Queries Taking Splunk to the Organization

Search commands – chart and timechart

The chart command aggregates data, providing output in tabular format which can then be used for a visualization. Visualizing data is critical to end user analysis, which makes chart a very important command. Notice that if you run the following search query, it is identical to the output of the stats command:

SPL> index=main | chart count by http_method 

For all basic purposes, you can use stats and chart interchangeably. However, there will be differences in how stats and chart group data together. It will be up to you to determine which one is your intended result. To show the differences, here are some examples:

SPL> index=main | stats count by http_method http_uri

You can see the result in the following screenshot:

Following is another example:

SPL> index=main | chart count by http_method http_uri 

You can see the result...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}