<?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 How can I use props and transforms to extract multiline muntivalue event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629837#M218816</link>
    <description>&lt;P&gt;Hi experts there,&lt;/P&gt;
&lt;P&gt;Trying to extract multivalue output from a multiline json field through props and transforms. How best can I achieve for the below sample data (for&amp;nbsp;my_mvdata field) ?&lt;/P&gt;
&lt;P&gt;I can write a regex in pros.conf with \\t delimiter. But only getting the first line. How to use multi add and do it through transforms?&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
something: false
somethingelse: true
blah:
blah:
my_mvdata: server1	count1	country1	code1	message1
server2	count1	country1	code1	message2
server3	count1	country1	code1	message3
server4	count1	country1	code1	message4
blah:
blah:
}&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 21:25:27 GMT</pubDate>
    <dc:creator>nareshinsvu</dc:creator>
    <dc:date>2023-02-07T21:25:27Z</dc:date>
    <item>
      <title>How can I use props and transforms to extract multiline muntivalue event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629837#M218816</link>
      <description>&lt;P&gt;Hi experts there,&lt;/P&gt;
&lt;P&gt;Trying to extract multivalue output from a multiline json field through props and transforms. How best can I achieve for the below sample data (for&amp;nbsp;my_mvdata field) ?&lt;/P&gt;
&lt;P&gt;I can write a regex in pros.conf with \\t delimiter. But only getting the first line. How to use multi add and do it through transforms?&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
something: false
somethingelse: true
blah:
blah:
my_mvdata: server1	count1	country1	code1	message1
server2	count1	country1	code1	message2
server3	count1	country1	code1	message3
server4	count1	country1	code1	message4
blah:
blah:
}&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 21:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629837#M218816</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2023-02-07T21:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: props and transforms to extract multiline muntivalue event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629840#M218817</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/156769"&gt;@nareshinsvu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this seems to be a json format, so use on your props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;INDEXED_EXTRACTIONS = JSON&lt;/LI-CODE&gt;&lt;P&gt;remember that only for this parameter, it's mandatory to put the props.conf both on Universal Forwarders, Indexers and Search Heads.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 07:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629840#M218817</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-07T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: props and transforms to extract multiline muntivalue event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629844#M218819</link>
      <description>&lt;P&gt;Sure &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;, and what else should I put in the conf files to extract that fields as multivalued&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 07:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629844#M218819</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2023-02-07T07:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: props and transforms to extract multiline muntivalue event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629848#M218822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/156769"&gt;@nareshinsvu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the above option is useful to extract all the fields as multivalue.&lt;/P&gt;&lt;P&gt;in addition you should add also&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SHOULD_LINEMERGE = true&lt;/LI-CODE&gt;&lt;P&gt;but in my opinion, the best approach is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;take a sample of your logs in a file,&lt;/LI&gt;&lt;LI&gt;ingest it using the GUI guided procedure to choose the correct sourcetype,&lt;/LI&gt;&lt;LI&gt;copy the found sourcetype in all the systems interested to this ingestion.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 07:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-props-and-transforms-to-extract-multiline/m-p/629848#M218822</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-07T07:59:13Z</dc:date>
    </item>
  </channel>
</rss>

