Getting Data In

Extracting or breaking values out of a _raw line for better visualisation/monitoring

lemikg
Communicator

Hi everybody,

I am just getting started "splunking" and have done the tutorial so far, However, for my next report I want to query values from sourcetype="interfaces" and field _raw, which has several data sets. This is what I got:

Name MAC inetAddr Collisions RXbytes TXbytes Speed Duplex bond0 E0:xx:56:xx:xx:84 19x.1xx.1xx.xx fe80::e2xx:xxff:fexx:6fxx/xx 0 51xxxx98 720xx11409   em1 E0:xx:56:xx:xx:84   0 41102617 7203522xx1 1000Mb/s full em2 E0:xx:56:xx:xx:84   0 998xx07 0 1000Mb/s full

I want to be able to extract the fields and the associated values in order to table them accordingly.

1/30/13
4:13:19.000 PM

Name MAC inetAddr inet6Addr Collisions RXbytes TXbytes Speed Duplex
bond0 E0:xx:56:xx:xx:84 19x.1xx.1xx.xx fe80::e2xx:xxff:fexx:6fxx/xx 0 51080098 7203511409

em1 E0:xx:56:xx:xx:84 0 41102617 7203522971 1000Mb/s full

em2 E0:xx:56:xx:xx:84 0 9981407 0 1000Mb/s full

I tried field extraction (propably not quite right) due to the restrictions I get as soon as there are more than one MAC Address.

I hope I was able to describe the problem. Could anyone point me at the right direction?
I appreciate your help.

Best regards from Germany,

Mike

Tags (1)
0 Karma
1 Solution

lemikg
Communicator

I think I just found the answer

sourcetype=interfaces | multikv | table host bond0 em1 em2 inetAddr Collision RXbytes TXbytes 

Also thanks to the provided video on Youtube Quick Tip: Making Sense of Tabular Data (multikv)

View solution in original post

0 Karma

lemikg
Communicator

I think I just found the answer

sourcetype=interfaces | multikv | table host bond0 em1 em2 inetAddr Collision RXbytes TXbytes 

Also thanks to the provided video on Youtube Quick Tip: Making Sense of Tabular Data (multikv)

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...