<?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 input: How can I split these values for each line break a new row is generated? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-input-How-can-I-split-these-values-for-each-line-break-a/m-p/375237#M67972</link>
    <description>&lt;P&gt;@wes7bb ,&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH
| rename 'data{}.application.name' as 'application_name', 'data{}.package.name' as 'package_name', 'data{}.planned_from' as 'planned_from'
| eval tempField= mvzip(mvzip(application_name,package_name),planned_from) 
| stats count by tempField
| eval application_name = mvindex(split(tempField,","),0), package_name= mvindex(split(tempField,","),1), planned_from=mvindex(split(tempField,","),2) 
| table application_name package_name planned_from
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 12:34:43 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2018-02-14T12:34:43Z</dc:date>
    <item>
      <title>JSON input: How can I split these values for each line break a new row is generated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-input-How-can-I-split-these-values-for-each-line-break-a/m-p/375236#M67971</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4381i3B350FA3B894E350/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hi there, &lt;BR /&gt;
I have a JSON input in Splunk and Splunk extracts the data. But it is not generating for each application in my case WCMS or ESIWEB as their own entry that is possible to sort through this data. All this information is related to one event. &lt;/P&gt;

&lt;P&gt;How can I split these values? &lt;BR /&gt;
I want that for each line break a new row is generated. &lt;/P&gt;

&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;

&lt;P&gt;Yours &lt;BR /&gt;
Sina &lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-input-How-can-I-split-these-values-for-each-line-break-a/m-p/375236#M67971</guid>
      <dc:creator>wes7bb</dc:creator>
      <dc:date>2018-02-14T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input: How can I split these values for each line break a new row is generated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-input-How-can-I-split-these-values-for-each-line-break-a/m-p/375237#M67972</link>
      <description>&lt;P&gt;@wes7bb ,&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH
| rename 'data{}.application.name' as 'application_name', 'data{}.package.name' as 'package_name', 'data{}.planned_from' as 'planned_from'
| eval tempField= mvzip(mvzip(application_name,package_name),planned_from) 
| stats count by tempField
| eval application_name = mvindex(split(tempField,","),0), package_name= mvindex(split(tempField,","),1), planned_from=mvindex(split(tempField,","),2) 
| table application_name package_name planned_from
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-input-How-can-I-split-these-values-for-each-line-break-a/m-p/375237#M67972</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-02-14T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input: How can I split these values for each line break a new row is generated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-input-How-can-I-split-these-values-for-each-line-break-a/m-p/375238#M67973</link>
      <description>&lt;P&gt;Thanks a lot for your help! It works! &lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-input-How-can-I-split-these-values-for-each-line-break-a/m-p/375238#M67973</guid>
      <dc:creator>wes7bb</dc:creator>
      <dc:date>2018-02-14T12:53:39Z</dc:date>
    </item>
  </channel>
</rss>

