You can combine commands. The pipe ( | ) character is used to separate the syntax of one command from the next command.
The following example reads from the
main dataset and then pipes that data to the
eval command. You use the
eval command to calculate an expression. The results of that expression are placed into a field in the search results that are returned to you.
This search takes the data in the
bytes field in the
main dataset and converts the bytes into kilobytes. The results are stored in a new field called
| from main | eval kbytes = bytes / 1024
Searching specific time ranges
Grouping search results
This documentation applies to the following versions of Splunk® Cloud Services: current