<?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: Extracting multiple values from single unstructured event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516653#M145222</link>
    <description>&lt;P&gt;Looks like you need something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
| rex max_match=0 field=_raw "LINE\":\"\|(?&amp;lt;user&amp;gt;[^\s]*)\s"
| mvexpand user&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 28 Aug 2020 08:28:10 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-08-28T08:28:10Z</dc:date>
    <item>
      <title>Extracting multiple values from single unstructured event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516650#M145221</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In a single event, we have a field named username which is occurring multiple time in the events in raw data and username are different. How can we extract this username field since there are multiple values in the same event. Please help, this is the SAP spool data which is forwarded to splunk cloud. Attaching the screensho with mutiple usernames in single event&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dkgs_0-1598601699362.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10552iB4E5C6812784AAC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dkgs_0-1598601699362.png" alt="dkgs_0-1598601699362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 08:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516650#M145221</guid>
      <dc:creator>dkgs</dc:creator>
      <dc:date>2020-08-28T08:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting multiple values from single unstructured event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516653#M145222</link>
      <description>&lt;P&gt;Looks like you need something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
| rex max_match=0 field=_raw "LINE\":\"\|(?&amp;lt;user&amp;gt;[^\s]*)\s"
| mvexpand user&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Aug 2020 08:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516653#M145222</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-08-28T08:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting multiple values from single unstructured event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516680#M145232</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thank you , the expression is working fine in search.&lt;/P&gt;&lt;P&gt;When I am trying to give the same expression while extracting fields, so that the field user will be permanent, Its not working. I had chosen 'I prefer to write the regular expression myself&amp;nbsp;'&amp;nbsp; &amp;nbsp;and had added the expression. But I am not able to view the field.Could you please suggest whats causing the issue, but the same is working in search.&lt;/P&gt;&lt;P&gt;Attaching screenshot for reference. Please suggest if its the same way we have to give regular expression while extracting fields&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 12:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516680#M145232</guid>
      <dc:creator>dkgs</dc:creator>
      <dc:date>2020-08-28T12:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting multiple values from single unstructured event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516707#M145239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223876"&gt;@dkgs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can only provide the expression&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE\":\"\|(?&amp;lt;user&amp;gt;[^\s]*)\s&lt;/LI-CODE&gt;&lt;P&gt;Unfortunately, I can't see a way of providing the max_match=0 part so you will only be able to extract the first match.&lt;/P&gt;&lt;P&gt;To get all the instances in a multivalue field on a more permanent basis, you may have to adopt the transforms and props configuration approach&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-from-single-unstructured-event/m-p/516707#M145239</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-08-28T13:51:02Z</dc:date>
    </item>
  </channel>
</rss>

