Splunk Cloud Platform

Search Reference



Returns the last N number of specified results. The events are returned in reverse order, starting at the end of the result set. The last 10 events are returned if no integer is specified


tail [<N>]

Required arguments


Optional arguments

Syntax: <int>
Description: The number of results to return.
Default: 10


The tail command is a dataset processing command. See Command types.


Example 1:

Return the last 20 results in reverse order.

... | tail 20

See also

head, reverse

Last modified on 17 November, 2021
tags   timechart

This documentation applies to the following versions of Splunk Cloud Platform: 8.2.2112, 8.2.2201, 8.2.2202, 9.0.2205, 8.2.2203, 9.0.2208, 9.0.2209, 9.0.2303, 9.0.2305, 9.1.2308 (latest FedRAMP release), 9.1.2312, 9.2.2403

Was this topic useful?

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters