<?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 Searching on a specific field in JSON in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Searching-on-a-specific-field-in-JSON/m-p/685870#M234015</link>
    <description>&lt;P&gt;This is probably an entry level question.&amp;nbsp; I have raw data that looks something like this:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;{"id": 99999, "type": "HOST", "timestamp": "2024-04-29T10:41:39.820Z", "entity": {"ipAddress": "1.1.1.1"}, "dataName": "Testing"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;If I search for type="HOST" or entity.ipAddress="1.1.1.1" I get this entry in the results, but if I search for dataName="Testing" or even dataName=*, I get nothing.&amp;nbsp; What is different about this field?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 16:57:22 GMT</pubDate>
    <dc:creator>fredsnertz</dc:creator>
    <dc:date>2024-04-29T16:57:22Z</dc:date>
    <item>
      <title>Searching on a specific field in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-on-a-specific-field-in-JSON/m-p/685870#M234015</link>
      <description>&lt;P&gt;This is probably an entry level question.&amp;nbsp; I have raw data that looks something like this:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;{"id": 99999, "type": "HOST", "timestamp": "2024-04-29T10:41:39.820Z", "entity": {"ipAddress": "1.1.1.1"}, "dataName": "Testing"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;If I search for type="HOST" or entity.ipAddress="1.1.1.1" I get this entry in the results, but if I search for dataName="Testing" or even dataName=*, I get nothing.&amp;nbsp; What is different about this field?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 16:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-on-a-specific-field-in-JSON/m-p/685870#M234015</guid>
      <dc:creator>fredsnertz</dc:creator>
      <dc:date>2024-04-29T16:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Searching on a specific field in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-on-a-specific-field-in-JSON/m-p/685905#M234028</link>
      <description>&lt;P&gt;There doesn't appear to be anything wrong with it - but it would require that field to be extracted so it could be searched.&lt;/P&gt;&lt;P&gt;Do you know if it's an indexed field or extracted at search time?&lt;/P&gt;&lt;P&gt;If you add &lt;STRONG&gt;| stats count by dataName&amp;nbsp;&lt;/STRONG&gt;to your search do you get any results - if not, then that field is not extracted.&lt;/P&gt;&lt;P&gt;If you run the search in verbose mode, does the dataName field show up in the fields in the left hand panel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 00:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-on-a-specific-field-in-JSON/m-p/685905#M234028</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-04-30T00:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Searching on a specific field in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-on-a-specific-field-in-JSON/m-p/685920#M234038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267419"&gt;@fredsnertz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;see in the interesting fields from your searh what's the real ile name of&amp;nbsp;&lt;SPAN&gt;dataName field (probably entity.dataName) and use it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using the json format fields are composite.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 05:35:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-on-a-specific-field-in-JSON/m-p/685920#M234038</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-04-30T05:35:27Z</dc:date>
    </item>
  </channel>
</rss>

