<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: data extraction from Nested JSON data and print only corresponding details in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510827#M143044</link>
    <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="{\"hostname\":\"abc\",\"inventory\":\"#####\",\"fqdn\":\"xxxxx.xxxx.xxx.xxx.xxx\",\"ip\":\"#.#.#.#\",\"platform\":\"XXXXX\",\"version\":\"XXXXX\",\"environment\":\"XXXX\",\"status\":\"XXXXX\",\"subStatus\":\"XXXXX\",\"contactSupporTeam\":\"xxxx\",\"model\":\"XXXXX\",\"product\":\"SERVER\",\"serial\":\"dfd34324\",\"app\":[{\"appName\":\"XXXXX\",\"appAcronym\":\"XXX\",\"appStatus\":\"xxxxx\",\"appOwner\":\"xxxxxx\"}],\"pkg\":[{\"pkgName\":\"xxxxx\",\"pkgVersion\":\"1.2.3\"},{\"pkgName\":\"yyyyy\",\"pkgVersion\":\"2.3.4\"},{\"pkgName\":\"zzzzz\",\"pkgVersion\":\"3.4.5\"}],\"nic\":[{\"nicName\":\"eth4\",\"nicSwitch\":[{\"nicSwitchName\":\"xxxxxxx\",\"nicSwitchSerial\":\"dfgdg45435fgg\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXX22\",\"nicSwitchVlan\":\"Vlan###\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/7\"},{\"nicSwitchName\":\"xxxxxxxx\",\"nicSwitchSerial\":\"dfsf23432ef\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/8\",\"nicSwitchVlan\":\"Vlan###\"}],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"up\",\"nicSpeed\":\"10000\",\"nicFirmware\":\"\",\"nicMac\":\"XX##XXX###XX\",\"nicDuplex\":\"FULL\",\"nicIP\":\"undefined\",\"nicNetmask\":\"\"},{\"nicName\":\"eth5\",\"nicSwitch\":[{\"nicSwitchName\":\"xxxxxx\",\"nicSwitchSerial\":\"dsfsdf3432sdf\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchVlan\":\"Vlan###\",\"nicSwitchPort\":\"Ethernet107/1/8\"},{\"nicSwitchName\":\"xxxxxx\",\"nicSwitchSerial\":\"fdf345345\",\"nicSwitchManufacturer\":\"XXXXX\",\"nicSwitchModel\":\"XXXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/7\",\"nicSwitchVlan\":\"Vlan###\"}],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"up\",\"nicSpeed\":\"\",\"nicFirmware\":\"\",\"nicMac\":\"XXX###XXX\",\"nicDuplex\":\"\",\"nicIP\":\"undefined\",\"nicNetmask\":\"\"},{\"nicName\":\"eth6\",\"nicSwitch\":[],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"\",\"nicSpeed\":\"\",\"nicFirmware\":\"\",\"nicMac\":\"\",\"nicDuplex\":\"\",\"nicIP\":\"#.#.#.#\",\"nicNetmask\":\"#.#.#.#\"}]}" 
| spath nic{} output=data 
| stats count by data | rename data as _raw | extract | spath nicSwitch{} output=data | stats count by nicName,data | rename data as _raw | extract | fields nicName nic*&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 24 Jul 2020 11:10:43 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2020-07-24T11:10:43Z</dc:date>
    <item>
      <title>data extraction from Nested JSON data and print only corresponding details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510816#M143038</link>
      <description>&lt;P&gt;H Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am trying to fetch the nicSwitch* details of only corresponding nicName from the below json data, which i could not able to achieve. Help is appreciated!&lt;/P&gt;&lt;DIV class="lia-note-subject"&gt;raw json data to extract the network switch details of each nicName&lt;/DIV&gt;&lt;DIV class="lia-note-subject"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-note-description"&gt;&lt;DIV class="lia-note-body"&gt;&lt;P&gt;{&lt;BR /&gt;"hostname": "abc",&lt;BR /&gt;"inventory": "#####",&lt;BR /&gt;"fqdn": "xxxxx.xxxx.xxx.xxx.xxx",&lt;BR /&gt;"ip": "#.#.#.#",&lt;BR /&gt;"platform": "XXXXX",&lt;BR /&gt;"version": "XXXXX",&lt;BR /&gt;"environment": "XXXX",&lt;BR /&gt;"status": "XXXXX",&lt;BR /&gt;"subStatus": "XXXXX",&lt;BR /&gt;"contactSupporTeam": "xxxx",&lt;BR /&gt;"model": "XXXXX",&lt;BR /&gt;"product": "SERVER",&lt;BR /&gt;"serial": "dfd34324",&lt;BR /&gt;"app": [{&lt;BR /&gt;"appName": "XXXXX",&lt;BR /&gt;"appAcronym": "XXX",&lt;BR /&gt;"appStatus": "xxxxx",&lt;BR /&gt;"appOwner": "xxxxxx"&lt;BR /&gt;}],&lt;BR /&gt;"pkg": [{&lt;BR /&gt;"pkgName": "xxxxx",&lt;BR /&gt;"pkgVersion": "1.2.3"&lt;BR /&gt;}, {&lt;BR /&gt;"pkgName": "yyyyy",&lt;BR /&gt;"pkgVersion": "2.3.4"&lt;BR /&gt;}, {&lt;BR /&gt;"pkgName": "zzzzz",&lt;BR /&gt;"pkgVersion": "3.4.5"&lt;BR /&gt;}],&lt;BR /&gt;"nic": [{&lt;BR /&gt;"nicName": "eth4",&lt;BR /&gt;"nicSwitch": [{&lt;BR /&gt;"nicSwitchName": "xxxxxxx",&lt;BR /&gt;"nicSwitchSerial": "dfgdg45435fgg",&lt;BR /&gt;"nicSwitchManufacturer": "XXXX",&lt;BR /&gt;"nicSwitchModel": "XXX22",&lt;BR /&gt;"nicSwitchVlan": "Vlan###",&lt;BR /&gt;"nicSwitchChannel": "port-channel3",&lt;BR /&gt;"nicSwitchPort": "Ethernet107/1/7"&lt;BR /&gt;}, {&lt;BR /&gt;"nicSwitchName": "xxxxxxxx",&lt;BR /&gt;"nicSwitchSerial": "dfsf23432ef",&lt;BR /&gt;"nicSwitchManufacturer": "XXXX",&lt;BR /&gt;"nicSwitchModel": "XXXX",&lt;BR /&gt;"nicSwitchChannel": "port-channel3",&lt;BR /&gt;"nicSwitchPort": "Ethernet107/1/8",&lt;BR /&gt;"nicSwitchVlan": "Vlan###"&lt;BR /&gt;}],&lt;BR /&gt;"nicDnsName": "",&lt;BR /&gt;"nicType": null,&lt;BR /&gt;"nicStatus": "up",&lt;BR /&gt;"nicSpeed": "10000",&lt;BR /&gt;"nicFirmware": "",&lt;BR /&gt;"nicMac": "XX##XXX###XX",&lt;BR /&gt;"nicDuplex": "FULL",&lt;BR /&gt;"nicIP": "undefined",&lt;BR /&gt;"nicNetmask": ""&lt;BR /&gt;}, {&lt;BR /&gt;"nicName": "eth5",&lt;BR /&gt;"nicSwitch": [{&lt;BR /&gt;"nicSwitchName": "xxxxxx",&lt;BR /&gt;"nicSwitchSerial": "dsfsdf3432sdf",&lt;BR /&gt;"nicSwitchManufacturer": "XXXX",&lt;BR /&gt;"nicSwitchModel": "XXXXX",&lt;BR /&gt;"nicSwitchChannel": "port-channel3",&lt;BR /&gt;"nicSwitchVlan": "Vlan###",&lt;BR /&gt;"nicSwitchPort": "Ethernet107/1/8"&lt;BR /&gt;}, {&lt;BR /&gt;"nicSwitchName": "xxxxxx",&lt;BR /&gt;"nicSwitchSerial": "fdf345345",&lt;BR /&gt;"nicSwitchManufacturer": "XXXXX",&lt;BR /&gt;"nicSwitchModel": "XXXXX",&lt;BR /&gt;"nicSwitchChannel": "port-channel3",&lt;BR /&gt;"nicSwitchPort": "Ethernet107/1/7",&lt;BR /&gt;"nicSwitchVlan": "Vlan###"&lt;BR /&gt;}],&lt;BR /&gt;"nicDnsName": "",&lt;BR /&gt;"nicType": null,&lt;BR /&gt;"nicStatus": "up",&lt;BR /&gt;"nicSpeed": "",&lt;BR /&gt;"nicFirmware": "",&lt;BR /&gt;"nicMac": "XXX###XXX",&lt;BR /&gt;"nicDuplex": "",&lt;BR /&gt;"nicIP": "undefined",&lt;BR /&gt;"nicNetmask": ""&lt;BR /&gt;}, {&lt;BR /&gt;"nicName": "eth6",&lt;BR /&gt;"nicSwitch": [],&lt;BR /&gt;"nicDnsName": "",&lt;BR /&gt;"nicType": null,&lt;BR /&gt;"nicStatus": "",&lt;BR /&gt;"nicSpeed": "",&lt;BR /&gt;"nicFirmware": "",&lt;BR /&gt;"nicMac": "",&lt;BR /&gt;"nicDuplex": "",&lt;BR /&gt;"nicIP": "#.#.#.#",&lt;BR /&gt;"nicNetmask": "#.#.#.#"&lt;BR /&gt;}]&lt;BR /&gt;}&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Jul 2020 09:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510816#M143038</guid>
      <dc:creator>bala1185</dc:creator>
      <dc:date>2020-07-24T09:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: data extraction from Nested JSON data and print only corresponding details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510820#M143039</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="{\"hostname\":\"abc\",\"inventory\":\"#####\",\"fqdn\":\"xxxxx.xxxx.xxx.xxx.xxx\",\"ip\":\"#.#.#.#\",\"platform\":\"XXXXX\",\"version\":\"XXXXX\",\"environment\":\"XXXX\",\"status\":\"XXXXX\",\"subStatus\":\"XXXXX\",\"contactSupporTeam\":\"xxxx\",\"model\":\"XXXXX\",\"product\":\"SERVER\",\"serial\":\"dfd34324\",\"app\":[{\"appName\":\"XXXXX\",\"appAcronym\":\"XXX\",\"appStatus\":\"xxxxx\",\"appOwner\":\"xxxxxx\"}],\"pkg\":[{\"pkgName\":\"xxxxx\",\"pkgVersion\":\"1.2.3\"},{\"pkgName\":\"yyyyy\",\"pkgVersion\":\"2.3.4\"},{\"pkgName\":\"zzzzz\",\"pkgVersion\":\"3.4.5\"}],\"nic\":[{\"nicName\":\"eth4\",\"nicSwitch\":[{\"nicSwitchName\":\"xxxxxxx\",\"nicSwitchSerial\":\"dfgdg45435fgg\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXX22\",\"nicSwitchVlan\":\"Vlan###\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/7\"},{\"nicSwitchName\":\"xxxxxxxx\",\"nicSwitchSerial\":\"dfsf23432ef\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/8\",\"nicSwitchVlan\":\"Vlan###\"}],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"up\",\"nicSpeed\":\"10000\",\"nicFirmware\":\"\",\"nicMac\":\"XX##XXX###XX\",\"nicDuplex\":\"FULL\",\"nicIP\":\"undefined\",\"nicNetmask\":\"\"},{\"nicName\":\"eth5\",\"nicSwitch\":[{\"nicSwitchName\":\"xxxxxx\",\"nicSwitchSerial\":\"dsfsdf3432sdf\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchVlan\":\"Vlan###\",\"nicSwitchPort\":\"Ethernet107/1/8\"},{\"nicSwitchName\":\"xxxxxx\",\"nicSwitchSerial\":\"fdf345345\",\"nicSwitchManufacturer\":\"XXXXX\",\"nicSwitchModel\":\"XXXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/7\",\"nicSwitchVlan\":\"Vlan###\"}],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"up\",\"nicSpeed\":\"\",\"nicFirmware\":\"\",\"nicMac\":\"XXX###XXX\",\"nicDuplex\":\"\",\"nicIP\":\"undefined\",\"nicNetmask\":\"\"},{\"nicName\":\"eth6\",\"nicSwitch\":[],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"\",\"nicSpeed\":\"\",\"nicFirmware\":\"\",\"nicMac\":\"\",\"nicDuplex\":\"\",\"nicIP\":\"#.#.#.#\",\"nicNetmask\":\"#.#.#.#\"}]}"
| spath nic{} output=nic
| stats count by nic
| spath input=nic
| fields - nic count&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Jul 2020 10:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510820#M143039</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-24T10:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: data extraction from Nested JSON data and print only corresponding details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510827#M143044</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="{\"hostname\":\"abc\",\"inventory\":\"#####\",\"fqdn\":\"xxxxx.xxxx.xxx.xxx.xxx\",\"ip\":\"#.#.#.#\",\"platform\":\"XXXXX\",\"version\":\"XXXXX\",\"environment\":\"XXXX\",\"status\":\"XXXXX\",\"subStatus\":\"XXXXX\",\"contactSupporTeam\":\"xxxx\",\"model\":\"XXXXX\",\"product\":\"SERVER\",\"serial\":\"dfd34324\",\"app\":[{\"appName\":\"XXXXX\",\"appAcronym\":\"XXX\",\"appStatus\":\"xxxxx\",\"appOwner\":\"xxxxxx\"}],\"pkg\":[{\"pkgName\":\"xxxxx\",\"pkgVersion\":\"1.2.3\"},{\"pkgName\":\"yyyyy\",\"pkgVersion\":\"2.3.4\"},{\"pkgName\":\"zzzzz\",\"pkgVersion\":\"3.4.5\"}],\"nic\":[{\"nicName\":\"eth4\",\"nicSwitch\":[{\"nicSwitchName\":\"xxxxxxx\",\"nicSwitchSerial\":\"dfgdg45435fgg\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXX22\",\"nicSwitchVlan\":\"Vlan###\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/7\"},{\"nicSwitchName\":\"xxxxxxxx\",\"nicSwitchSerial\":\"dfsf23432ef\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/8\",\"nicSwitchVlan\":\"Vlan###\"}],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"up\",\"nicSpeed\":\"10000\",\"nicFirmware\":\"\",\"nicMac\":\"XX##XXX###XX\",\"nicDuplex\":\"FULL\",\"nicIP\":\"undefined\",\"nicNetmask\":\"\"},{\"nicName\":\"eth5\",\"nicSwitch\":[{\"nicSwitchName\":\"xxxxxx\",\"nicSwitchSerial\":\"dsfsdf3432sdf\",\"nicSwitchManufacturer\":\"XXXX\",\"nicSwitchModel\":\"XXXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchVlan\":\"Vlan###\",\"nicSwitchPort\":\"Ethernet107/1/8\"},{\"nicSwitchName\":\"xxxxxx\",\"nicSwitchSerial\":\"fdf345345\",\"nicSwitchManufacturer\":\"XXXXX\",\"nicSwitchModel\":\"XXXXX\",\"nicSwitchChannel\":\"port-channel3\",\"nicSwitchPort\":\"Ethernet107/1/7\",\"nicSwitchVlan\":\"Vlan###\"}],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"up\",\"nicSpeed\":\"\",\"nicFirmware\":\"\",\"nicMac\":\"XXX###XXX\",\"nicDuplex\":\"\",\"nicIP\":\"undefined\",\"nicNetmask\":\"\"},{\"nicName\":\"eth6\",\"nicSwitch\":[],\"nicDnsName\":\"\",\"nicType\":null,\"nicStatus\":\"\",\"nicSpeed\":\"\",\"nicFirmware\":\"\",\"nicMac\":\"\",\"nicDuplex\":\"\",\"nicIP\":\"#.#.#.#\",\"nicNetmask\":\"#.#.#.#\"}]}" 
| spath nic{} output=data 
| stats count by data | rename data as _raw | extract | spath nicSwitch{} output=data | stats count by nicName,data | rename data as _raw | extract | fields nicName nic*&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Jul 2020 11:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510827#M143044</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-07-24T11:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: data extraction from Nested JSON data and print only corresponding details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510828#M143045</link>
      <description>&lt;P&gt;thanks for looking into it. it is printing multivalues in each rows, if each nic has multiple switches.&lt;/P&gt;&lt;P&gt;i got help from someone and got it worked below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i got it worked well with the below:&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval _raw="{\"hostname\": \"xxxxx\",\"inventory\": \"#####\",\"fqdn\": \"xxxxx.xxxx.xxx.xxx.xxx\",\"ip\": \"#.#.#.#\",\"platform\": \"XXXXX\",\"version\": \"XXXXX\",\"environment\": \"XXXX\",\"status\": \"XXXXX\",\"subStatus\": \"XXXXX\",\"contactSupporTeam\": \"xxxx\",\"model\": \"XXXXX\",\"product\": \"SERVER\",\"serial\": \"dfd34324\",\"app\": [{\"appName\": \"XXXXX\",\"appAcronym\": \"XXX\",\"appStatus\": \"xxxxx\",\"appOwner\": \"xxxxxx\"}],\"pkg\": [{\"pkgName\": \"xxxxx\",\"pkgVersion\": \"1.2.3\"}, {\"pkgName\": \"yyyyy\",\"pkgVersion\": \"2.3.4\"}, {\"pkgName\": \"zzzzz\",\"pkgVersion\": \"3.4.5\"}],\"nic\": [{\"nicName\": \"eth4\",\"nicSwitch\": [{\"nicSwitchName\": \"xxxxxxx\",\"nicSwitchSerial\": \"dfgdg45435fgg\",\"nicSwitchManufacturer\": \"XXXX\",\"nicSwitchModel\": \"XXX22\",\"nicSwitchVlan\": \"Vlan###\",\"nicSwitchChannel\": \"port-channel3\",\"nicSwitchPort\": \"Ethernet107/1/7\"}, {\"nicSwitchName\": \"xxxxxxxx\",\"nicSwitchSerial\": \"dfsf23432ef\",\"nicSwitchManufacturer\": \"XXXX\",\"nicSwitchModel\": \"XXXX\",\"nicSwitchChannel\": \"port-channel3\",\"nicSwitchPort\": \"Ethernet107/1/8\",\"nicSwitchVlan\": \"Vlan###\"}],\"nicDnsName\": \"\",\"nicType\": null,\"nicStatus\": \"up\",\"nicSpeed\": \"10000\",\"nicFirmware\": \"\",\"nicMac\": \"XX##XXX###XX\",\"nicDuplex\": \"FULL\",\"nicIP\": \"undefined\",\"nicNetmask\": \"\"}, {\"nicName\": \"eth5\",\"nicSwitch\": [{\"nicSwitchName\": \"xxxxxx\",\"nicSwitchSerial\": \"dsfsdf3432sdf\",\"nicSwitchManufacturer\": \"XXXX\",\"nicSwitchModel\": \"XXXXX\",\"nicSwitchChannel\": \"port-channel3\",\"nicSwitchVlan\": \"Vlan###\",\"nicSwitchPort\": \"Ethernet107/1/8\"}, {\"nicSwitchName\": \"xxxxxx\",\"nicSwitchSerial\": \"fdf345345\",\"nicSwitchManufacturer\": \"XXXXX\",\"nicSwitchModel\": \"XXXXX\",\"nicSwitchChannel\": \"port-channel3\",\"nicSwitchPort\": \"Ethernet107/1/7\",\"nicSwitchVlan\": \"Vlan###\"}],\"nicDnsName\": \"\",\"nicType\": null,\"nicStatus\": \"up\",\"nicSpeed\": \"\",\"nicFirmware\": \"\",\"nicMac\": \"XXX###XXX\",\"nicDuplex\": \"\",\"nicIP\": \"undefined\",\"nicNetmask\": \"\"}, {\"nicName\": \"eth6\",\"nicSwitch\": [],\"nicDnsName\": \"\",\"nicType\": null,\"nicStatus\": \"\",\"nicSpeed\": \"\",\"nicFirmware\": \"\",\"nicMac\": \"\",\"nicDuplex\": \"\",\"nicIP\": \"#.#.#.#\",\"nicNetmask\": \"#.#.#.#\"}]}"&lt;BR /&gt;| spath nic{} output=nic | stats count by nic | rename nic as _raw&lt;BR /&gt;| extract | spath nicSwitch{} output=nic | stats count by nicName,nic | rename nic as _raw | extract | fields nicName nic*&lt;BR /&gt;| fields - _raw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now,&amp;nbsp;&amp;nbsp;i would like to fetch the OS log with below query&lt;BR /&gt;index="linux-os" source="tcp:1234" log_source="varlog-messages" "Link is Down"&lt;BR /&gt;| rex field=_raw "(?&amp;lt;NICDevice&amp;gt;[\w]{3,7})(: NIC|: Link)" |table hostname, message, NICDeice&lt;/P&gt;&lt;P&gt;the o/p will be like below :&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;abcd&lt;/TD&gt;&lt;TD&gt;Jul 24 05:46:53 abcd kernel: [ 26.340634] ixgbe 0000:0b:00.0: eth0: NIC Link is Down&lt;/TD&gt;&lt;TD&gt;eth0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;efgh&lt;/TD&gt;&lt;TD&gt;Jul 24 04:20:04 efgh kernel: ixgbe 0000:0b:00.1 ens2f1: NIC Link is Down&lt;/TD&gt;&lt;TD&gt;ens2f1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;ijkl&lt;/TD&gt;&lt;TD&gt;Jul 24 01:02:31 ijkl kernel: vmxnet3 0000:03:00.0 eth0: NIC Link is Down&lt;/TD&gt;&lt;TD&gt;eth0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;ijkl&lt;/TD&gt;&lt;TD&gt;Jul 24 01:02:27 ijkl kernel: vmxnet3 0000:03:00.0 eth0: NIC Link is Down&lt;/TD&gt;&lt;TD&gt;eth0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to fetch hostname and NICDevice from this output and correlate this hostname and NICDevice with the initial query that you have given and fetch the details of nicSwitch* and also other details like app, location, etc...&lt;/P&gt;&lt;P&gt;seems join is taking too much time and also found that, if a server has the NICDevice reported as down and if that NICDevice is not existing as nicName in the initial index.. the other details like, app, location details also not fetching.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 11:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-extraction-from-Nested-JSON-data-and-print-only/m-p/510828#M143045</guid>
      <dc:creator>bala1185</dc:creator>
      <dc:date>2020-07-24T11:12:48Z</dc:date>
    </item>
  </channel>
</rss>

