Splunk Search

Is it possible in search to return leading and trailing results surrounding each match similar to -C function in grep?

mfjones65
New Member

Is it possible in a SPLUNK search to return a number of leading and trailing results surround each match similar to the "-C" function in grep?

Tags (2)
0 Karma

pradeepkumarg
Influencer
0 Karma

mfjones65
New Member

Thank you. The link was helpful.

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...