<?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: Unable to Extract Multiple values into a single feild ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350801#M174569</link>
    <description>&lt;P&gt;You might have to put code sections of your question using code button (101010) to avoid escaping.&lt;/P&gt;

&lt;P&gt;Rex will generate  field with multiple values is you have enables max_match=100. You can set the same to zero if you want to find all matches i.e. max_match=0.&lt;/P&gt;

&lt;P&gt;So, you might have to also explain what is it that you intend to do with your data and also with is the current issue with rex using max_match?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 14:32:22 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-09-29T14:32:22Z</dc:date>
    <item>
      <title>Unable to Extract Multiple values into a single feild ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350799#M174567</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I was unable to extract multiple Values into one feild from the the below Event data,&lt;BR /&gt;
Was trying to extract all data between xyz - /xyz into one single feild,&lt;BR /&gt;
Its working with including |rex max_match=100 - in the search query as  ( search |rex max_match=100 "xyz(?P.*?)\/xyz&amp;gt;"  )&lt;BR /&gt;
But looking for an alternative which extracts multiple values into one single feild at writing regular expression level.&lt;/P&gt;

&lt;P&gt;ams &lt;BR /&gt;
xyzStats.QuarterHour.CRCErrors/xyz&amp;gt;\x1B&lt;BR /&gt;&lt;BR /&gt;
xyzQuarterHourStart/xyz&amp;gt;\x1B&lt;BR /&gt;&lt;BR /&gt;
xyzDownstreamNoiseMargin/xyz&amp;gt;\x1B&lt;BR /&gt;&lt;BR /&gt;
xyzUpstreamCurrRate/xyz&amp;gt;\x1B&lt;BR /&gt;&lt;BR /&gt;
xyz.WANDSLInterfaceConfig.Status/xyz&amp;gt;\x1B&lt;BR /&gt;
/ams&amp;gt;\x1B&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350799#M174567</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2020-09-29T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Extract Multiple values into a single feild ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350800#M174568</link>
      <description>&lt;P&gt;you're looking for another way besides using max_match? or you want another regex statement? I'm not sure you can extract an MV field without the max_match, but i could be wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:32:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350800#M174568</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2020-09-29T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Extract Multiple values into a single feild ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350801#M174569</link>
      <description>&lt;P&gt;You might have to put code sections of your question using code button (101010) to avoid escaping.&lt;/P&gt;

&lt;P&gt;Rex will generate  field with multiple values is you have enables max_match=100. You can set the same to zero if you want to find all matches i.e. max_match=0.&lt;/P&gt;

&lt;P&gt;So, you might have to also explain what is it that you intend to do with your data and also with is the current issue with rex using max_match?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350801#M174569</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T14:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Extract Multiple values into a single feild ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350802#M174570</link>
      <description>&lt;P&gt;Thank you,&lt;BR /&gt;
Cant find how to Extract MVfield without max_match.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 18:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350802#M174570</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2017-06-20T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Extract Multiple values into a single feild ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350803#M174571</link>
      <description>&lt;P&gt;Be sure to mark your code as code so the interface doesn't act on what it thinks are html tags or formatting commands.&lt;/P&gt;

&lt;P&gt;It sounds like you are looking for the &lt;CODE&gt;nomv&lt;/CODE&gt; command, which turns a multivalue field into a regular field separated by (usually) spaces ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search
| rex max_match=0 "xyz(?&amp;lt;myXyz&amp;gt;[^\/]*)\/xyz&amp;gt;"
| nomv myXyz
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By the way, when you know that a field will never include a particular character and will always end on that character, you can use that single character as a negative character class, which makes the rex slightly more efficient in the case of a near-but-nonmatch.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 19:03:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350803#M174571</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-06-20T19:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Extract Multiple values into a single feild ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350804#M174572</link>
      <description>&lt;P&gt;Thanks for the revert. I understand that max_match=0  will give me the desired result. But in all the search queries wherever i need to extract that respective filed i have to write the rex.&lt;/P&gt;

&lt;P&gt;is there a way that whenever i am having max_match i can configure it in Splunk and automatic fields get extracted. I tried but automatic filed extractor doesn't accept max_match parameter.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-Extract-Multiple-values-into-a-single-feild/m-p/350804#M174572</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2020-09-29T14:37:15Z</dc:date>
    </item>
  </channel>
</rss>

