Getting Data In

Split event into multiple events

evan_roggenkamp
Path Finder

I am indexing syslog traps stored to a file. I am building a transaction based on that where if the value of a particular field extracted with rex changes. However, it would seem sometimes that the indexer records two specific events as one. This is obviously messing with results, as the second event is not considered. I am looking for a workaround. This event represents two different events upon which my transaction search requires to function. If the second one isn't considered, my transaction command will fail:

     Received Time:4/28/2016 8:40:55 AM
     Source:
     Community:jeQ2saFRaXaspAqa
     Tag:= BLUE_PLANET
     Variable Bindings
          sysUpTime:= 0.03 second (3)
          snmpTrapOID:= CYAN-MIB:cyan.6.1.3.60 (1.3.6.1.4.1.28533.6.1.3.60)
          cyan.6.1.1.1.0:= 48548
          cyan.6.1.1.2.0:= 10.252.4.17
          cyan.6.1.1.3.0:= Nodename
          cyan.6.1.1.4.0:= 3
          cyan.6.1.1.5.0:= OCh Term.
          cyan.6.1.1.6.0:= LINE_OCH-1-6-1-210
          cyan.6.1.1.7.0:= 388
          cyan.6.1.1.8.0:= 60
          cyan.6.1.1.9.0:= High Rx Power
          cyan.6.1.1.10.0:= 1
          cyan.6.1.1.11.0:= 3
          cyan.6.1.1.12.0:= 2
          cyan.6.1.1.13.0:= 3
          cyan.6.1.1.14.0:= Signal Degrade - High Received Power
          cyan.6.1.1.15.0:= Cyan Z33
          cyan.6.1.1.16.0:= TP_SD
          snmpTrapEnterprise:= CYAN-MIB:cyanProducts.6 (1.3.6.1.4.1.28533.1.6)
     Received Time:4/28/2016 8:40:56 AM
     Source:
     Community:jeQ2saFRaXaspAqa
     Tag:= BLUE_PLANET
     Variable Bindings
          sysUpTime:= 0.01 second (1)
          snmpTrapOID:= CYAN-MIB:cyan.6.1.3.60 (1.3.6.1.4.1.28533.6.1.3.60)
          cyan.6.1.1.1.0:= 48557
          cyan.6.1.1.2.0:= 10.252.4.17
          cyan.6.1.1.3.0:= Nodename 
          cyan.6.1.1.4.0:= 3
          cyan.6.1.1.5.0:= OCh Term.
          cyan.6.1.1.6.0:= LINE_OCH-1-6-1-210
          cyan.6.1.1.7.0:= 388
          cyan.6.1.1.8.0:= 60
          cyan.6.1.1.9.0:= High Rx Power
          cyan.6.1.1.10.0:= 0
          cyan.6.1.1.11.0:= 3
          cyan.6.1.1.12.0:= 2
          cyan.6.1.1.13.0:= 1
          cyan.6.1.1.14.0:= Signal Degrade - High Received Power
          cyan.6.1.1.15.0:= Cyan Z33
          cyan.6.1.1.16.0:= TP_SD
          snmpTrapEnterprise:= CYAN-MIB:cyanProducts.6 (1.3.6.1.4.1.28533.1.6)

How can I tell splunk how to split these up into two separate events?

0 Karma
1 Solution

sundareshr
Legend

sundareshr
Legend

Here is some great documentation on how you can break events.

http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Indexmulti-lineevents

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...