Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Advanced Splunk

You're reading from  Advanced Splunk

Product type Book
Published in Jun 2016
Publisher
ISBN-13 9781785884351
Pages 348 pages
Edition 1st Edition
Languages
Author (1):
Ashish Kumar Tulsiram Yadav Ashish Kumar Tulsiram Yadav
Profile icon Ashish Kumar Tulsiram Yadav

Table of Contents (20) Chapters

Advanced Splunk
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Preface
What's New in Splunk 6.3? Developing an Application on Splunk On-boarding Data in Splunk Data Analytics Advanced Data Analytics Visualization Advanced Visualization Dashboard Customization Advanced Dashboard Customization Tweaking Splunk Enterprise Integration with Splunk What Next? Splunk 6.4 Index

Fields


The fields subset of commands on Splunk is used to add, extract, and modify fields and field values. These commands help users enrich the data, do mathematical and string operations on the fields, and derive insight from the data.

The eval command

The eval command of Splunk is very useful and powerful. It can be used to evaluate Boolean, mathematical, or string expressions. It can also be used to create custom (new) fields using existing fields or arbitrary expressions. This command can be used to create new fields, which is the result of some calculations, or use conditional operators such as if, case, match, and so on to apply some expression and evaluate the result.

The eval command can also be used to coalesce fields from different sources or indexes to create a transaction of events. The command can be used to extract information to create multiple fields from an event(s).

The syntax for the eval command is as follows:

eval fieldname = expression/Functions

The parameter description...

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}