Splunk Search

Is it possible to use a transaction to group previous?

jambajuice
Communicator

Is there an equivalent of a reverse transaction search command that would look backwards in time for events when a certain event occurs? For example, adding a Cisco switch port to a particular vlan looks like:

interface fa0/1
switchport access vlan 100

We can't tell what port that command was accessed on unless we can capture the last X events from that user on that host. Is that possible?

Thanks.

Craig

Tags (1)
0 Karma

David
Splunk Employee
Splunk Employee

There are two ways that strike me, you could do this. As I imagine you already considered, you could try to configure transactions to do a startswith=interface endswidth="switchport access" but that may be too brittle for your needs. The other avenue I'd go down is with localize. See if these can do what you're looking for:

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...