<?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: Why is my regex not matching for a multivalue field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244128#M72661</link>
    <description>&lt;P&gt;Hi spike,&lt;/P&gt;

&lt;P&gt;Did you try using max_match=0, which means unlimited matches ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=0 field="A"  "(?&amp;lt;C&amp;gt;[\da-z\.-]+\.[a-z\.]{2,6})\n(?&amp;lt;D&amp;gt;\d{1,3})"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice that I've also removed the curly brackets.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 14:15:40 GMT</pubDate>
    <dc:creator>alemarzu</dc:creator>
    <dc:date>2016-01-21T14:15:40Z</dc:date>
    <item>
      <title>Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244126#M72659</link>
      <description>&lt;P&gt;I looked through quite a few posts on here and couldn't find an appropriate answer, so please bare with me.&lt;/P&gt;

&lt;P&gt;I have events coming into Splunk in JSON format. The top-level fields are extracted fine. However, a nested map/dictionary is giving me issues. When I run a search to get the values from that inner dictionary, it works in that I get a resulting table like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; A       B
---     ---   
 x       y
         z
         y
         z

 s       m
         n

 u       -  (- means None)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, the y and z both belong to x and occasionally there are more than 2 items per each x. This happens for any x in A.&lt;/P&gt;

&lt;P&gt;Since the cell in the table makes the values in B look separated by a newline, I created a regular expression that I've verified to correctly grab the logical groups for each y and z, if, for instance, they were just in a text box like this:&lt;/P&gt;

&lt;P&gt;y&lt;BR /&gt;
z&lt;BR /&gt;
y&lt;BR /&gt;
z&lt;BR /&gt;
y&lt;BR /&gt;
z&lt;/P&gt;

&lt;P&gt;So the regex would properly grab the two as many times necessary, separately.&lt;/P&gt;

&lt;P&gt;What I want to do is pull out each pair and separate the two items into two new fields, say C and D, and then later have a table where I have C and D grouped to field A.&lt;/P&gt;

&lt;P&gt;The regex part of the command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field="A{}{}"  "(?&amp;lt;C&amp;gt;[\da-z\.-]+\.[a-z\.]{2,6})\n(?&amp;lt;D&amp;gt;\d{1,3})"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: the A{}{} together makes up the multivalue field, B, and A is just A as in the earlier part of my example.&lt;/P&gt;

&lt;P&gt;The issue I'm running into is that when I pipe what should be the output from that statement into the table command, I don't get anything.. The regex is definitely confirmed working on a site like &lt;A href="http://regexr.com/"&gt;http://regexr.com/&lt;/A&gt; just for sanity-checking.&lt;/P&gt;

&lt;P&gt;So there must be something I'm missing. Maybe the initial table with my example just looks like newlines separate the two values into rows when it doesn't. In which case I tried using a  &lt;CODE&gt;\s&lt;/CODE&gt; as the separator rather than  &lt;CODE&gt;\n&lt;/CODE&gt; and it still doesn't work.&lt;/P&gt;

&lt;P&gt;Or maybe there's a super simple explanation for an obvious mistake I'm making.&lt;/P&gt;

&lt;P&gt;Regardless I would appreciate some help very much.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 01:30:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244126#M72659</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T01:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244127#M72660</link>
      <description>&lt;P&gt;Please provide a full search or at least the table command you are using.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 12:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244127#M72660</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-21T12:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244128#M72661</link>
      <description>&lt;P&gt;Hi spike,&lt;/P&gt;

&lt;P&gt;Did you try using max_match=0, which means unlimited matches ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=0 field="A"  "(?&amp;lt;C&amp;gt;[\da-z\.-]+\.[a-z\.]{2,6})\n(?&amp;lt;D&amp;gt;\d{1,3})"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice that I've also removed the curly brackets.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 14:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244128#M72661</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2016-01-21T14:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244129#M72662</link>
      <description>&lt;P&gt;I hadn't before, so I just tried that but I still don't seem to be getting any results. My full search query winds up looking like: &lt;CODE&gt;index="myindex" | rex max_match=0 field="A" "(?[\da-z\.-]+\.[a-z\.]{2,6})\n(?\d{1,3})" | table "A", "C", "D"&lt;/CODE&gt; so nothing absurdly complicated here just trying to get things working correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244129#M72662</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244130#M72663</link>
      <description>&lt;P&gt;Mentioned it below, but it looks something like: &lt;CODE&gt;index="myindex" | rex max_match=0 field="A" "(?[\da-z\.-]+\.[a-z\.]{2,6})\n(?\d{1,3})" | table "A", "C", "D"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So nothing particularly complicated, just to get data output, which isn't happening at all yet.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244130#M72663</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T15:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244131#M72664</link>
      <description>&lt;P&gt;I just realized that the regex you gave us has an invalid structure. Do you mind sharing a sample data  so I can build the proper regex ?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244131#M72664</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2016-01-21T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244132#M72665</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;   index="myindex"| rex max_match=0 field="A"  "(?&amp;lt;C&amp;gt;[\da-z\.-]+\.[a-z\.]{2,6})\n(?&amp;lt;D&amp;gt;\d{1,3})" | table "A", "C", "D"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244132#M72665</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-21T15:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244133#M72666</link>
      <description>&lt;P&gt;What about?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myindex" 
| mvexpand A
| rex max_match=0 field="A" "(?mi)(?&amp;lt;C&amp;gt;[\da-z\.-]+\.[a-z\.]{2,6})\n(?&amp;lt;D&amp;gt;\d{1,3})" 
| table "A", "C", "D"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myindex" 
| mvexpand A
| rex max_match=0 field="A" "(?si)(?&amp;lt;C&amp;gt;[\da-z\.-]+\.[a-z\.]{2,6})\s+(?&amp;lt;D&amp;gt;\d{1,3})" 
| table "A", "C", "D"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note the (?mi) and the (?si). More info here: &lt;A href="http://www.regular-expressions.info/modifiers.html"&gt;http://www.regular-expressions.info/modifiers.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244133#M72666</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-21T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244134#M72667</link>
      <description>&lt;P&gt;It only turns invalid when he quotes &lt;CODE&gt;like this&lt;/CODE&gt; versus&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  like this&amp;lt;&amp;gt;&amp;lt;\&amp;gt;&amp;lt;&amp;gt;&amp;lt;&amp;gt;&amp;lt;&amp;gt;&amp;lt;&amp;gt;&amp;lt;&amp;gt;&amp;lt;&amp;gt;&amp;lt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But yes, please provide a sample event.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244134#M72667</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-21T15:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244135#M72668</link>
      <description>&lt;P&gt;U were right, thx &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244135#M72668</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2016-01-21T15:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244136#M72669</link>
      <description>&lt;P&gt;So you're looking for a new line in field A?    whats the \n for?  Are you turning the JSON into one large event using should_linemerge=true?  Are you using KV_MODE=JSON?  A sample event and your props/transforms would be most helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244136#M72669</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T08:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244137#M72670</link>
      <description>&lt;P&gt;Odd formatting.&lt;/P&gt;

&lt;P&gt;So a typical event looks something like this. Priority is to get the keys from the "IMPORTANT" dictionary, but values as well in their own field would be very useful if I could get this to work properly&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "timestamp": "2016-01-21T14:44:28", 
    "SOME_FIELD": "etc.",
    "ANOTHER_FIELD": "...", 
    "IMPORTANT": {
        "a_string": 3,
        "another_strong": 44,
        "maybe_another...":95
    }, 
    "test": [
        [
            "something", 
            1.0
        ]
    ]
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244137#M72670</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244138#M72671</link>
      <description>&lt;P&gt;I just added a comment with a sample event.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244138#M72671</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T15:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244139#M72672</link>
      <description>&lt;P&gt;Based on your code sample below why don't you try this (ignore the stats count and the eval as this is just for me to be able to generate an event):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count
| eval myjson = "{
     \"timestamp\": \"2016-01-21T14:44:28\", 
     \"SOME_FIELD\": \"etc.\",
     \"ANOTHER_FIELD\": \"...\", 
     \"IMPORTANT\": {
         \"a_string\": 3,
         \"another_strong\": 44,
         \"maybe_another...\":95
     }, 
     \"test\": [
         [
             \"something\", 
             1.0
         ]
     ]
 }"
| spath input=myjson
| table IMPORTANT.*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244139#M72672</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-21T15:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244140#M72673</link>
      <description>&lt;P&gt;Hmm. If I do that, it grabs each key of the dictionary, and turns them into the fields of the table. So I get a bunch of fields called "IMPORTANT_key_" and the integer value isn't shown at all.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244140#M72673</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2020-09-29T08:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244141#M72674</link>
      <description>&lt;P&gt;What you do mean by "the integer value isn't shown at all".&lt;BR /&gt;
If you copy and paste my code into your search box it should return the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IMPORTANT.a_string  IMPORTANT.another_strong    IMPORTANT.maybe_another...
3   44  95 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where you have field names and values in a table. You can then pipe it to "transpose" if you want to capture field names for instance.&lt;/P&gt;

&lt;P&gt;Or maybe I'm completely misunderstanding your requirement.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 16:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244141#M72674</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-21T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244142#M72675</link>
      <description>&lt;P&gt;Well I do get:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IMPORTANT.a_string     IMPORTANT.another_strong     IMPORTANT.maybe_another...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the values aren't populating, plus these fields should then be separated per events rather than being actual field names. I think what's happening right now is it sets all the keys from IMPORTANT in the first event as the field names, but there are many events, each with different keys in IMPORTANT. So just setting it the current way doesn't work since those keys will usually be different.&lt;/P&gt;

&lt;P&gt;Usually I'll probably do something like &lt;CODE&gt;| table "timestamp", IMPORTANT&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So that I get three columns. First would be timestamp since each event has a unique timestamp. Second column would be the keys, and third would be values. Or something similar to that.&lt;/P&gt;

&lt;P&gt;Does that make more sense? Hopefully it does.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 16:19:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244142#M72675</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244143#M72676</link>
      <description>&lt;P&gt;So I actually added an example event that you might have missed. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
     "timestamp": "2016-01-21T14:44:28", 
     "SOME_FIELD": "etc.",
     "ANOTHER_FIELD": "...", 
     "IMPORTANT": {
         "a_string": 3,
         "another_strong": 44,
         "maybe_another...":95
     }, 
     "test": [
         [
             "something", 
             1.0
         ]
     ]
 }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Originally my idea just for the absolute minimum (to at least show I'm able to retrieve that part of the JSON data) was to use a &lt;CODE&gt;| table "timestamp", IMPORTANT.key, IMPORTANT.values&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Maybe that isn't a good way to go about this?&lt;/P&gt;

&lt;P&gt;Splunk already recognizes the rest of the fields at the top level. So if I do &lt;CODE&gt;| table "timestamp", "ANOTHER_FIELD"&lt;/CODE&gt; then it works fine&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 16:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244143#M72676</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244144#M72677</link>
      <description>&lt;P&gt;My props/transforms are default right now since it seemed like Splunk could already pull out the top-level fields, as mentioned in my other comment a moment ago.&lt;/P&gt;

&lt;P&gt;Maybe that's the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 16:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244144#M72677</guid>
      <dc:creator>spike021</dc:creator>
      <dc:date>2016-01-21T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regex not matching for a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244145#M72678</link>
      <description>&lt;P&gt;Still don't get why values are empty but anyway, that's not the important thing.&lt;/P&gt;

&lt;P&gt;Your field names are dynamic, so have you try to pipe your events to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | spath input=yourjsonfieldname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | spath input=IMPORTANT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or maybe this in case all your event is in a Json format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | spath
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Take a look at the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/spath"&gt;command help.&lt;/A&gt; Spath is a brilliant command when you want to extract data from JSON or XML fields.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 16:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-regex-not-matching-for-a-multivalue-field/m-p/244145#M72678</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-21T16:28:47Z</dc:date>
    </item>
  </channel>
</rss>

