cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Renaming log field entry that starts with a certain prefix (Logs Classic)

AntonioSousa
DynaMight Guru
DynaMight Guru

I have SNMP traps in logs. In this case, they are in a Managed environment.

A sample log contains for instance:

"CISCO-SMI::ciscoMgmt.41.1.2.3.1.3.300109": "5",

Now, the "300109" part is variable. I want to obtain the "5" in this case.

How would the processing definition be made in this case?

Antonio Sousa
1 REPLY 1

DwayneWhite
Participant

You can try this

data record(content=""""CISCO-SMI::ciscoMgmt.41.1.2.3.1.3.300109": "5",""")
| parse content, """
DQS:dq_string LD
DQS:magicnumber
"""

DwayneWhite_0-1733487656985.png

 

Featured Posts