<?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: How to extract a field from multi valued event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318100#M95177</link>
    <description>&lt;P&gt;@jkirankumar1993, you would need to use &lt;CODE&gt;max_match=0&lt;/CODE&gt; to fetch multiple values for the multi-valued field extraction using &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;rex&lt;/A&gt; command. Try the following run anywhere search based on sample data provided:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="GA.769:180302:113834:: INFO.PSA: Getting issue for ID: 931778
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'AE Test Fail' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType w...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'AE Testing in Progress' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Activating' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Adding to .Net Website' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'All Sec Incidents (closed)' of type com.atlassian.servicedesk.internal.sla.customfie...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Application Certification' of type com.atlassian.servicedesk.internal.sla.customfiel...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Approvals' of type com.atlassian.servicedesk.plugins.approvals.internal.customfield....
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Approvals' of type com.atlassian.servicedesk.plugins.approvals.internal.customfield....
class type: java.util.HashMap
map values: null --&amp;gt; 505 :: NetOps-HR
map values: 1 --&amp;gt; 90109
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'BHN Test' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was s...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Building Test Lines' of type com.atlassian.servicedesk.internal.sla.customfield.SLAC...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Checking Connectivity' of type com.atlassian.servicedesk.internal.sla.customfield.SL...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Connect to Network and Add to INS' of type com.atlassian.servicedesk.internal.sla.cu...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Connecting MTA to Network' of type com.atlassian.servicedesk.internal.sla.customfiel...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Creating Test Accounts' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Customer Request Type' of type com.atlassian.servicedesk.internal.customfields.origi...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Customer Response Time' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'DOCSIS Test' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Days to Resolution' of type com.atlassian.servicedesk.internal.sla.customfield.SLACF...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Epic Link' of type com.atlassian.greenhopper.customfield.epiclink.EpicLinkCFType was...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'FCC 2 Weeks' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'FCC 3 Weeks' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'First Response' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'First Response Task Metric' of type com.atlassian.servicedesk.internal.sla.customfie...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'IT Testing' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was..."
| rex "INFO\.getCustomFieldValues\(\):\sfield\s\'(?&amp;lt;myField&amp;gt;[^\']+)\'\sof\stype" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 02 Mar 2018 18:44:43 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-03-02T18:44:43Z</dc:date>
    <item>
      <title>How to extract a field from multi valued event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318099#M95176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This is the sample event &lt;/P&gt;

&lt;P&gt;GA.769:180302:113834:: INFO.PSA: Getting issue for ID: 931778&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'AE Test Fail' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType w...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'AE Testing in Progress' of type com.atlassian.servicedesk.internal.sla.customfield.S...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Activating' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Adding to .Net Website' of type com.atlassian.servicedesk.internal.sla.customfield.S...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'All Sec Incidents (closed)' of type com.atlassian.servicedesk.internal.sla.customfie...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Application Certification' of type com.atlassian.servicedesk.internal.sla.customfiel...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Approvals' of type com.atlassian.servicedesk.plugins.approvals.internal.customfield....&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Approvals' of type com.atlassian.servicedesk.plugins.approvals.internal.customfield....&lt;BR /&gt;
class type: java.util.HashMap&lt;BR /&gt;
map values: null --&amp;gt; 505 :: NetOps-HR&lt;BR /&gt;
map values: 1 --&amp;gt; 90109&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'BHN Test' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was s...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Building Test Lines' of type com.atlassian.servicedesk.internal.sla.customfield.SLAC...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Checking Connectivity' of type com.atlassian.servicedesk.internal.sla.customfield.SL...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Connect to Network and Add to INS' of type com.atlassian.servicedesk.internal.sla.cu...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Connecting MTA to Network' of type com.atlassian.servicedesk.internal.sla.customfiel...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Creating Test Accounts' of type com.atlassian.servicedesk.internal.sla.customfield.S...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Customer Request Type' of type com.atlassian.servicedesk.internal.customfields.origi...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Customer Response Time' of type com.atlassian.servicedesk.internal.sla.customfield.S...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'DOCSIS Test' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Days to Resolution' of type com.atlassian.servicedesk.internal.sla.customfield.SLACF...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Epic Link' of type com.atlassian.greenhopper.customfield.epiclink.EpicLinkCFType was...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'FCC 2 Weeks' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'FCC 3 Weeks' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'First Response' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'First Response Task Metric' of type com.atlassian.servicedesk.internal.sla.customfie...&lt;BR /&gt;
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'IT Testing' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was...&lt;/P&gt;

&lt;P&gt;When I use regular expression I am getting the value from the first line but not from the other lines. I want to capture the fields that start after INFO.getCustomFieldValues(): field.  &lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318099#M95176</guid>
      <dc:creator>jkirankumar1993</dc:creator>
      <dc:date>2018-03-02T18:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field from multi valued event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318100#M95177</link>
      <description>&lt;P&gt;@jkirankumar1993, you would need to use &lt;CODE&gt;max_match=0&lt;/CODE&gt; to fetch multiple values for the multi-valued field extraction using &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;rex&lt;/A&gt; command. Try the following run anywhere search based on sample data provided:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="GA.769:180302:113834:: INFO.PSA: Getting issue for ID: 931778
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'AE Test Fail' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType w...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'AE Testing in Progress' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Activating' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Adding to .Net Website' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'All Sec Incidents (closed)' of type com.atlassian.servicedesk.internal.sla.customfie...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Application Certification' of type com.atlassian.servicedesk.internal.sla.customfiel...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Approvals' of type com.atlassian.servicedesk.plugins.approvals.internal.customfield....
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Approvals' of type com.atlassian.servicedesk.plugins.approvals.internal.customfield....
class type: java.util.HashMap
map values: null --&amp;gt; 505 :: NetOps-HR
map values: 1 --&amp;gt; 90109
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'BHN Test' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was s...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Building Test Lines' of type com.atlassian.servicedesk.internal.sla.customfield.SLAC...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Checking Connectivity' of type com.atlassian.servicedesk.internal.sla.customfield.SL...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Connect to Network and Add to INS' of type com.atlassian.servicedesk.internal.sla.cu...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Connecting MTA to Network' of type com.atlassian.servicedesk.internal.sla.customfiel...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Creating Test Accounts' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Customer Request Type' of type com.atlassian.servicedesk.internal.customfields.origi...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Customer Response Time' of type com.atlassian.servicedesk.internal.sla.customfield.S...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'DOCSIS Test' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Days to Resolution' of type com.atlassian.servicedesk.internal.sla.customfield.SLACF...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'Epic Link' of type com.atlassian.greenhopper.customfield.epiclink.EpicLinkCFType was...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'FCC 2 Weeks' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'FCC 3 Weeks' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType wa...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'First Response' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'First Response Task Metric' of type com.atlassian.servicedesk.internal.sla.customfie...
GA.769:180302:113834:: INFO.getCustomFieldValues(): field 'IT Testing' of type com.atlassian.servicedesk.internal.sla.customfield.SLACFType was..."
| rex "INFO\.getCustomFieldValues\(\):\sfield\s\'(?&amp;lt;myField&amp;gt;[^\']+)\'\sof\stype" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318100#M95177</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-02T18:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field from multi valued event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318101#M95178</link>
      <description>&lt;P&gt;I have series of events like this. I want to extract field called "custom_field" from all these multi valued events.&lt;/P&gt;

&lt;P&gt;Example or sample output of extracted field:&lt;/P&gt;

&lt;P&gt;AE Test Fail&lt;BR /&gt;
AE Testing in Progress&lt;BR /&gt;
Activating&lt;BR /&gt;
.............&lt;BR /&gt;
.............&lt;/P&gt;

&lt;P&gt;Note: I dont have access to any config files. So, can you tell any regular expression to capture all those values?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 19:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318101#M95178</guid>
      <dc:creator>jkirankumar1993</dc:creator>
      <dc:date>2018-03-02T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field from multi valued event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318102#M95179</link>
      <description>&lt;P&gt;Your query worked great for this single event. But, I have series of events and i want to extract these values as a field so that I can make a report&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 19:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318102#M95179</guid>
      <dc:creator>jkirankumar1993</dc:creator>
      <dc:date>2018-03-02T19:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field from multi valued event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318103#M95180</link>
      <description>&lt;P&gt;Try adding &lt;CODE&gt;mvexpand&lt;/CODE&gt; to your query to expand the multiple values of that is what you want.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourBaseSearch&amp;gt;
| fields _raw
| rex "INFO\.getCustomFieldValues\(\):\sfield\s\'(?&amp;lt;myField&amp;gt;[^\']+)\'\sof\stype" max_match=0
| mvexpand myField 
| table myField
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Mar 2018 13:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318103#M95180</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-04T13:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field from multi valued event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318104#M95181</link>
      <description>&lt;P&gt;Worked Great. Thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 15:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318104#M95181</guid>
      <dc:creator>jkirankumar1993</dc:creator>
      <dc:date>2018-03-05T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field from multi valued event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318105#M95182</link>
      <description>&lt;P&gt;Glad you found it working. Please up vote the comments that helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 15:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-from-multi-valued-event/m-p/318105#M95182</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-05T15:57:17Z</dc:date>
    </item>
  </channel>
</rss>

