<?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 Splunk Search of a JSON array event provides incorrect field values and count. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696320#M236663</link>
    <description>&lt;P&gt;We have a huge json array event, when I search for that event, search results shows a few missing values for a field. Any suggestion how to fix this issue, and have all values displayed for the field.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 21:12:52 GMT</pubDate>
    <dc:creator>kk1231</dc:creator>
    <dc:date>2024-08-14T21:12:52Z</dc:date>
    <item>
      <title>Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696320#M236663</link>
      <description>&lt;P&gt;We have a huge json array event, when I search for that event, search results shows a few missing values for a field. Any suggestion how to fix this issue, and have all values displayed for the field.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 21:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696320#M236663</guid>
      <dc:creator>kk1231</dc:creator>
      <dc:date>2024-08-14T21:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696327#M236665</link>
      <description>&lt;P&gt;This is difficult to diagnose without sight of your events and the search you are currently using. It is possible that you are hitting some sort of limit but where that might be is almost impossible to determine without further information.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 22:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696327#M236665</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-14T22:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696403#M236678</link>
      <description>&lt;P&gt;Here is the JSON event, when I hover over on the interested field "LogController_LogMerticsAsync_request.loggerData{}.adType", I am only getting 3 values, as shown in the table, but&amp;nbsp; I see 5 entries of "adTypes" in the raw event.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Values&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Count&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Completes&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Midpoints&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Third Quartiles&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the sample json, It is a huge json event, but truncated some data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "@t": "2024-08-14T13:34:42.1718458Z",
    "@mt": "{className}{methodName}{transactionId}{logLevel}@{LogController_LogMetricsAsync_request}",
    "className": "D:\\CW\\uploader\\Service\\LogController.cs_152",
    "methodName": "LogMetricsAsync",
    "transactionId": "d8e8e141-e9fc749abb0f",
    "logLevel": "Information",
    "LogController_LogMetricsAsync_request": {
        "action": "Device",
        "event": "Info",
        "loggerData": [
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "PlaybackAd",
                "adType": "Midpoints",
                "content": "Episode",
                "adId": "676697"
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "PlaybackAd",
                "adType": "Third Quartiles",
                "content": "Episode",
                "adId": "676697"
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "PlaybackAd",
                "adType": "Completes",
                "adId": "676697"
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "adType": "Midpoints",
                "content": "Episode",
                "adId": "CODE791"
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "adType": "Third Quartiles",
                "content": "Episode",
                "adId": "CODE791"
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "adType": "Completes",
                "content": "Episode",
                "adId": "CODE791"
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "act": "NetworkBalance",
                "data": {
                    "connectionType": "Wi-Fi",
                    "routerInfo": "ARRIS"
                }
            },
            {
                "schema": "1.0",
                "bv": "1.3.41",
                "dt": "CS",
                "adType": "Start",
                "content": "Episode",
                "adId": "635897"
            }
        ]
    }
}&lt;/LI-CODE&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;</description>
      <pubDate>Thu, 15 Aug 2024 16:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696403#M236678</guid>
      <dc:creator>kk1231</dc:creator>
      <dc:date>2024-08-15T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696406#M236679</link>
      <description>&lt;P&gt;Splunk will not automatically give a count or a percentage after search. &amp;nbsp;You need to show the command you use to get those three values. &amp;nbsp;This is why&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;says you cannot find an answer without context.&lt;/P&gt;&lt;P&gt;This emulation shows what Splunk gets after raw search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw = "{
    \"@t\": \"2024-08-14T13:34:42.1718458Z\",
    \"@mt\": \"{className}{methodName}{transactionId}{logLevel}@{LogController_LogMetricsAsync_request}\",
    \"className\": \"D:\\\\CW\\\\uploader\\\\Service\\\\LogController.cs_152\",
    \"methodName\": \"LogMetricsAsync\",
    \"transactionId\": \"d8e8e141-e9fc749abb0f\",
    \"logLevel\": \"Information\",
    \"LogController_LogMetricsAsync_request\": {
        \"action\": \"Device\",
        \"event\": \"Info\",
        \"loggerData\": [
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"PlaybackAd\",
                \"adType\": \"Midpoints\",
                \"content\": \"Episode\",
                \"adId\": \"676697\"
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"PlaybackAd\",
                \"adType\": \"Third Quartiles\",
                \"content\": \"Episode\",
                \"adId\": \"676697\"
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"PlaybackAd\",
                \"adType\": \"Completes\",
                \"adId\": \"676697\"
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"adType\": \"Midpoints\",
                \"content\": \"Episode\",
                \"adId\": \"CODE791\"
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"adType\": \"Third Quartiles\",
                \"content\": \"Episode\",
                \"adId\": \"CODE791\"
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"adType\": \"Completes\",
                \"content\": \"Episode\",
                \"adId\": \"CODE791\"
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"act\": \"NetworkBalance\",
                \"data\": {
                    \"connectionType\": \"Wi-Fi\",
                    \"routerInfo\": \"ARRIS\"
                }
            },
            {
                \"schema\": \"1.0\",
                \"bv\": \"1.3.41\",
                \"dt\": \"CS\",
                \"adType\": \"Start\",
                \"content\": \"Episode\",
                \"adId\": \"635897\"
            }
        ]
    }
}"
| spath
``` data emulation above ```
| table LogController_LogMetricsAsync_request.loggerData{}.adType&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table I get is&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="388.046875px" height="25px"&gt;&lt;DIV class=""&gt;LogController_LogMetricsAsync_request.loggerData{}.adType&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="388.046875px" height="157px"&gt;&lt;DIV class=""&gt;Midpoints&lt;/DIV&gt;&lt;DIV class=""&gt;Third Quartiles&lt;/DIV&gt;&lt;DIV class=""&gt;Completes&lt;/DIV&gt;&lt;DIV class=""&gt;Midpoints&lt;/DIV&gt;&lt;DIV class=""&gt;Third Quartiles&lt;/DIV&gt;&lt;DIV class=""&gt;Completes&lt;/DIV&gt;&lt;DIV class=""&gt;Start&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;There are seven values in this array. &amp;nbsp;Play with this emulation and plug subsequent search commands and find out what's wrong in those. &amp;nbsp;Or post your search to get volunteers to help.&lt;/P&gt;&lt;P&gt;Side note: Python, for one, will not accept \\ in JSON. &amp;nbsp;Technically this is invalid in JSON document, but somehow Splunk takes it.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 17:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696406#M236679</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-08-15T17:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696418#M236687</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;, I am not running any complex query, with the basic search when I hover over my mouse on the interested field &lt;SPAN&gt;"LogController_LogMerticsAsync_request.loggerData{}.adType"&lt;/SPAN&gt;, I am only getting top the 3 values instead of 5 values as you provided the table.&amp;nbsp; The Json event I provided is a trauncated, the actual number of lines in JSON format is around 959 Lines. So&amp;nbsp;Is there any limit setting on the search head to analyze whole event?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 19:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696418#M236687</guid>
      <dc:creator>kk1231</dc:creator>
      <dc:date>2024-08-15T19:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696419#M236688</link>
      <description>&lt;P&gt;Not a search head limit, but an ingestion limit. &amp;nbsp;If you look at raw events, you'll probably see one JSON document broken into multiple "events". &amp;nbsp;The solution is in props.conf (or use Splunk Web to set MAX_EVENTS). &amp;nbsp;Good thing you noticed line numbers. &amp;nbsp;It took me like 2 years. &amp;nbsp;See&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Why-are-REST-API-receivers-simple-breaks-input-unexpectedly/m-p/690057#M114827" target="_self"&gt;my post in Getting Data In&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 21:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696419#M236688</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-08-15T21:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696739#M236795</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;, I see the whole event in a single line when I search for that event and on the indexer I have this props.&lt;/P&gt;&lt;P&gt;[load_server]&lt;BR /&gt;TRUNCATE=999999&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 15:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696739#M236795</guid>
      <dc:creator>kk1231</dc:creator>
      <dc:date>2024-08-19T15:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search of a JSON array event provides incorrect field values and count.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696798#M236805</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;, I see the whole event in a single line when I search for that event and on the indexer I have&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Does this conflict with the following?&lt;/P&gt;&lt;BLOCKQUOTE&gt;trauncated, the actual number of lines in JSON format is around 959 Lines. So&amp;nbsp;Is there any limit setting on the search head to analyze whole event?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could you elaborate, maybe with some real examples? (Anonymize as needed.)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 04:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-of-a-JSON-array-event-provides-incorrect-field/m-p/696798#M236805</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-08-20T04:57:27Z</dc:date>
    </item>
  </channel>
</rss>

