Getting Data In

Extract fields from syslog (new to splunk)

sja
New Member

Hi people

I have syslog out put like that :

ifIndex 1212, ifAdminStatus up(1), ifOperStatus up(1), ifName ge-1/1/1.32767
ifIndex 1211, ifAdminStatus up(1), ifOperStatus up(1), ifName ge-1/1/1.4093

......

I would like to to make ifName as the field and the ge-*/*/*.* as the value I like to get info about.

Tags (2)
0 Karma

sja
New Member

Yes thats works !!
Thanks!!

0 Karma

kristian_kolb
Ultra Champion

Have you looked at the Interactive Field Extractor (ifx)?

Other than that you can perform the field extraction on-the-fly in the search (it won't be stored anywhere);

your_search | rex "ifName (?<ifName>.*)$" 

Hope this helps,

Kristian

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...