<?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: Json huge data - issue with breaking the individual events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502538#M100012</link>
    <description>&lt;P&gt;JSON auto extraction will only extract, I believe, the first 5000 bytes. You need to use spath on the elements of the data you need.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 10:41:24 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2019-12-09T10:41:24Z</dc:date>
    <item>
      <title>Json huge data - issue with breaking the individual events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502537#M100011</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;"Global Users":[
    {
         "AP name":"T2-GF-WDN-ISP-079", 
         "Auth":null, 
         "Bssid":"94:b4:0f:04:51:f1", 
         "Current switch":"172.30.97.41", 
         "Essid":"#DXB Free WiFi", 
         "IP":"10.11.0.23", 
         "MAC":"68:e7:c2:5d:a1:ad", 
         "Name":null, 
         "Phy":"a-HT", 
         "Profile":"FreeWifi-AAA-Profile", 
         "Roaming":"Wireless", 
         "Role":"Free-Wifi-user-Role", 
         "Type":"Linux", 
         "User Type":"WIRELESS" 
    },
    {
         "AP name":"T3-L2-FD07-WDN-OSP-109", 
         "Auth":null, 
         "Bssid":"40:e3:d6:23:3b:21", 
         "Current switch":"172.30.97.111", 
         "Essid":"#DXB Free WiFi", 
         "IP":"10.234.0.213", 
         "MAC":"fc:aa:b6:17:1a:a3", 
         "Name":null, 
         "Phy":"g-HT", 
         "Profile":"T3-FreeWifi-AAA-Profile", 
         "Roaming":"Wireless", 
         "Role":"Free-Wifi-user-Role", 
         "Type":"Linux", 
         "User Type":"WIRELESS" 
    },
    {
         "AP name":"T3-L2-FD12-WDN-ISP-020", 
         "Auth":"802.1x", 
         "Bssid":"b4:5d:50:f8:57:e2", 
         "Current switch":"172.30.97.112", 
         "Essid":"tenantauth", 
         "IP":"10.235.197.85", 
         "MAC":"d4:e6:b7:94:39:95", 
         "Name":"torydxb@tenant", 
         "Phy":"g-HT", 
         "Profile":"TENANTAUTH-AAA-Profile", 
         "Roaming":"Wireless", 
         "Role":"TENANTAUTH-user-Role", 
         "Type":"Android", 
         "User Type":"WIRELESS" 
    },
    {
         "AP name":"CB-GF-FD07-WDN-OSP-050", 
         "Auth":"802.1x", 
         "Bssid":"20:a6:cd:30:9a:22", 
         "Current switch":"172.30.97.112", 
         "Essid":"ahlan", 
         "IP":"10.211.2.144", 
         "MAC":"48:9d:d1:6d:8d:e9", 
         "Name":"GNSCDWC02", 
         "Phy":"g-HT", 
         "Profile":"T3-CB-Ahlan-AAA-Profile", 
         "Roaming":"Wireless", 
         "Role":"Ahlan-User-Role", 
         "Type":"Linux", 
         "User Type":"WIRELESS" 
    }
],
"_data":[
    "Total entries = 14995" 
],
"_meta":[
    "IP", 
    "MAC", 
    "Name", 
    "Current switch", 
    "Role", 
    "Auth", 
    "AP name", 
    "Roaming", 
    "Essid", 
    "Bssid", 
    "Phy", 
    "Profile", 
    "Type", 
    "User Type" 
]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;}"&lt;/P&gt;

&lt;P&gt;Above is my json data  . Well  i have trimmmed the events ,its so huge lines in millions for a single event . &lt;BR /&gt;
I tried giving the sourcetype as _json but its not breaking my events .Kindly help  .I always have trouble while the data is in json format . Looking for the right solution and the explanation . Kindly help&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 08:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502537#M100011</guid>
      <dc:creator>Nadhiya_Dubai</dc:creator>
      <dc:date>2019-12-09T08:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Json huge data - issue with breaking the individual events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502538#M100012</link>
      <description>&lt;P&gt;JSON auto extraction will only extract, I believe, the first 5000 bytes. You need to use spath on the elements of the data you need.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 10:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502538#M100012</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2019-12-09T10:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Json huge data - issue with breaking the individual events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502539#M100013</link>
      <description>&lt;P&gt;If JSON is that big you should use code outside of Splunk to parse it into reasonable events and send those in. Also when sending in properly formed JSON use kv_mode = JSON on your sourcetype definition in props.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502539#M100013</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2019-12-09T14:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Json huge data - issue with breaking the individual events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502540#M100014</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
 | eval _raw="{\"Global Users\":[{\"AP name\":\"T2-GF-WDN-ISP-079\",\"Auth\":null,\"Bssid\":\"94:b4:0f:04:51:f1\",\"Current switch\":\"172.30.97.41\",\"Essid\":\"#DXB Free WiFi\",\"IP\":\"10.11.0.23\",\"MAC\":\"68:e7:c2:5d:a1:ad\",\"Name\":null,\"Phy\":\"a-HT\",\"Profile\":\"FreeWifi-AAA-Profile\",\"Roaming\":\"Wireless\",\"Role\":\"Free-Wifi-user-Role\",\"Type\":\"Linux\",\"User Type\":\"WIRELESS\"},{\"AP name\":\"T3-L2-FD07-WDN-OSP-109\",\"Auth\":null,\"Bssid\":\"40:e3:d6:23:3b:21\",\"Current switch\":\"172.30.97.111\",\"Essid\":\"#DXB Free WiFi\",\"IP\":\"10.234.0.213\",\"MAC\":\"fc:aa:b6:17:1a:a3\",\"Name\":null,\"Phy\":\"g-HT\",\"Profile\":\"T3-FreeWifi-AAA-Profile\",\"Roaming\":\"Wireless\",\"Role\":\"Free-Wifi-user-Role\",\"Type\":\"Linux\",\"User Type\":\"WIRELESS\"},{\"AP name\":\"T3-L2-FD12-WDN-ISP-020\",\"Auth\":\"802.1x\",\"Bssid\":\"b4:5d:50:f8:57:e2\",\"Current switch\":\"172.30.97.112\",\"Essid\":\"tenantauth\",\"IP\":\"10.235.197.85\",\"MAC\":\"d4:e6:b7:94:39:95\",\"Name\":\"torydxb@tenant\",\"Phy\":\"g-HT\",\"Profile\":\"TENANTAUTH-AAA-Profile\",\"Roaming\":\"Wireless\",\"Role\":\"TENANTAUTH-user-Role\",\"Type\":\"Android\",\"User Type\":\"WIRELESS\"},{\"AP name\":\"CB-GF-FD07-WDN-OSP-050\",\"Auth\":\"802.1x\",\"Bssid\":\"20:a6:cd:30:9a:22\",\"Current switch\":\"172.30.97.112\",\"Essid\":\"ahlan\",\"IP\":\"10.211.2.144\",\"MAC\":\"48:9d:d1:6d:8d:e9\",\"Name\":\"GNSCDWC02\",\"Phy\":\"g-HT\",\"Profile\":\"T3-CB-Ahlan-AAA-Profile\",\"Roaming\":\"Wireless\",\"Role\":\"Ahlan-User-Role\",\"Type\":\"Linux\",\"User Type\":\"WIRELESS\"}],\"_data\":[\"Total entries = 14995\"],\"_meta\":[\"IP\",\"MAC\",\"Name\",\"Current switch\",\"Role\",\"Auth\",\"AP name\",\"Roaming\",\"Essid\",\"Bssid\",\"Phy\",\"Profile\",\"Type\",\"User Type\"]}"
 | spath  
 | fields - _*
 | rename "Global Users"{}.* as *
 | rename data{} as _data, meta{} as _meta
 | mvexpand IP
 | rename IP as _IP
 | streamstats count
 | foreach *
    [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;', count - 1)]
| rename _IP as IP, _data as data, _meta as meta
| table IP MAC Name "Current switch" Role Auth  "AP name" Roaming Essid Bssid Phy Profile Type "User Type" data
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;At this level, you can normally &lt;CODE&gt;spath&lt;/CODE&gt; .&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502540#M100014</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-09T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Json huge data - issue with breaking the individual events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502541#M100015</link>
      <description>&lt;P&gt;Maybe start with explaining what the desired behavior would be, because that is not very clear from your question. Do you want each &lt;CODE&gt;{         "AP name"... }&lt;/CODE&gt; section in a separate event?&lt;/P&gt;

&lt;P&gt;In general, I would concur with the answer from @starcher that this looks like something you want to pre-process and then send into splunk as individual events, rather than massive json structs.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502541#M100015</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-12-09T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Json huge data - issue with breaking the individual events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502542#M100016</link>
      <description>&lt;P&gt;&lt;CODE&gt;"Total entries = 14995"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Propsconf"&gt;props.conf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/295142/line-breaker-in-single-line-printed-json-doc.html"&gt;LINE_BREAKER in single line printed JSON doc&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope this can be done well.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 11:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-huge-data-issue-with-breaking-the-individual-events/m-p/502542#M100016</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-10T11:06:19Z</dc:date>
    </item>
  </channel>
</rss>

