Splunk Cloud

Search Reference

Acrobat logo Download manual as PDF

Acrobat logo Download topic as PDF

tail

Description

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

Syntax

tail [<N>]

Required arguments

None.

Optional arguments

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

Examples

Example 1:

Return the last 20 results in reverse order.

... | tail 20

See also

head, reverse

Last modified on 22 July, 2020
PREVIOUS
tags
  NEXT
timechart

This documentation applies to the following versions of Splunk Cloud: 7.2.4, 7.2.6, 7.2.8, 7.2.7, 7.2.9, 7.2.10, 8.0.2006, 8.0.2007, 8.1.2008, 8.1.2009, 8.1.2011


Was this documentation topic helpful?

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