Produces an abstract, a summary or brief representation, of the text of the search results. The original text is replaced by the summary.
The abstract is produced by a scoring mechanism. Events that are larger than the selected
maxlines, those with more textual terms and more terms on adjacent lines, are preferred over events with fewer terms. If a line has a search term, its neighboring lines also partially match, and might be returned to provide context. When there are gaps between the selected lines, lines are prefixed with an ellipsis (...).
If the text of an event has fewer lines or an equal number of lines as
maxlines, no change occurs.
abstract [maxterms=<int>] [maxlines=<int>]
- Syntax: maxterms=<int>
- Description: The maximum number of terms to match. Accepted values are 1 to 1000.
- Syntax: maxlines=<int>
- Description: The maximum number of lines to match. Accepted values are 1 to 500.
Example 1: Show a summary of up to 5 lines for each search result.
... |abstract maxlines=5
This documentation applies to the following versions of Splunk Cloud™: 7.0.13, 7.2.4, 7.2.6, 7.2.7, 7.2.8, 7.2.9, 7.2.10, 8.0.2006, 8.0.2007, 8.1.2008, 8.1.2009, 8.1.2011, 8.1.2012, 8.1.2101