Dashboards & Visualizations

depends on one of the filed(type) value, re-name fields and create table

Pragnesh
Loves-to-Learn

here is log format:

Type=0 name=aaa1 door=aaa2 street=aaa3 city=aaa4 country=aaa5 dr="" CN=""
Type=0 name=bbb1 door=bbb2 street=bbb3 city=bbb4 country=bbb5 dr="" CN=""
Type=1 name=ccc1 door="" street=ccc3 city=ccc4 country="" dr=ccc2 CN=ccc5
Type=1 name=ddd1 door="" street=ddd3 city=ddd4 country="" dr=ddd2 CN=ddd5

wanted to create table like below:

NAMEDOOR-NUMBERSTREETCITYCOUNTRY-NAME
aaa1aaa2aaa3aaa4aaa5
bbb1bbb2bbb3bbb4bbb5
ccc1ccc2ccc3ccc4ccc5
ddd1ddd2ddd3ddd4ddd5

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| makeresults 
| eval _raw="Type=0 name=aaa1 door=aaa2 street=aaa3 city=aaa4 country=aaa5 dr=\"\" CN=\"\"
Type=0 name=bbb1 door=bbb2 street=bbb3 city=bbb4 country=bbb5 dr=\"\" CN=\"\"
Type=1 name=ccc1 door=\"\" street=ccc3 city=ccc4 country=\"\" dr=ccc2 CN=ccc5
Type=1 name=ddd1 door=\"\" street=ddd3 city=ddd4 country=\"\" dr=ddd2 CN=ddd5"
| multikv noheader=t
| table _raw



| extract pairdelim=" " kvdelim="="
| eval country=if(country="",CN,country)
| eval door=if(door="",dr,door)
| table name door street city country
0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...