<?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: Regex with multiple fields duplicated.  Yet data can be different? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162139#M45889</link>
    <description>&lt;P&gt;Thanks dmaislin this is very helpfull. I will verify it against current output. Looks very promising.&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2014 15:48:15 GMT</pubDate>
    <dc:creator>dmacgillivray</dc:creator>
    <dc:date>2014-05-13T15:48:15Z</dc:date>
    <item>
      <title>Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162132#M45882</link>
      <description>&lt;P&gt;I have an issue with data titles that would appear to be repeated, yet in the case below, The passwordexpiry_date: field can be repeated with different values.&lt;/P&gt;

&lt;P&gt;See below account fields are replicated and I am trying to determine if a REGEX can even be written on this. Especially when field names are duplicated. &lt;/P&gt;

&lt;P&gt;sequence_number=18112355,&lt;BR /&gt;
remote_client=Eserver,&lt;BR /&gt;
2014-05-08 18:02:47:84 GMT,&lt;BR /&gt;
conn=72276,&lt;BR /&gt;
op=239,&lt;BR /&gt;
eventID=0a46b98715e113924708169294656,&lt;BR /&gt;
messageID=701,&lt;BR /&gt;
ip=127.0.0.1,&lt;BR /&gt;
uname=gaspm05,&lt;BR /&gt;
urole=Bobs And Admin,&lt;BR /&gt;
msg=Modify user,&lt;BR /&gt;
msgtype=MODIFY,&lt;BR /&gt;
result=0,&lt;BR /&gt;
etime=34ms,&lt;BR /&gt;
upd_user_owner=Person User Admin Group,&lt;BR /&gt;
associated_parent_member_groups=[ ],&lt;BR /&gt;
upd_user=DATA_BOB_Truck3bobsurunc,&lt;BR /&gt;
new_user=[userid:&lt;BR /&gt;
[DATA_BOB_Truck3bobsurunc] &lt;BR /&gt;
firstname:[Truck3bobsurunc] &lt;BR /&gt;
lastname:[LN] &lt;BR /&gt;
email:[] &lt;BR /&gt;
certdn:[] &lt;BR /&gt;
properties:[[name=ContactID isset=false], [name=ctscPasswordResetAttempts isset=false], [name=ctscSecretQuestionAnswer isset=false]] &lt;BR /&gt;
account_start_date:[Mar 12, 2014 6:08:47 PM] &lt;BR /&gt;
account_expiry_date:[Jan 1, 4712 6:08:47 PM] &lt;BR /&gt;
islockedout:[false] &lt;BR /&gt;
isactive:[true] &lt;BR /&gt;
passwordexpiry_date:[Aug 6, 2014 6:02:47 PM] &lt;BR /&gt;
admin_group:[Person User Admin Group] &lt;BR /&gt;
ispublic:[true]],&lt;BR /&gt;
original_user=[userid:[DATA_BOB_Truck3bobsurunc]&lt;BR /&gt;
 firstname:[Truck3bobsurunc] &lt;BR /&gt;
 lastname:[LN] &lt;BR /&gt;
 email:[] &lt;BR /&gt;
 certdn:[] &lt;BR /&gt;
 properties:[[name=ContactID isset=false], [name=ctscPasswordResetAttempts isset=false], [name=ctscSecretQuestionAnswer isset=false]] &lt;BR /&gt;
 account_start_date:[Mar 12, 2014 6:08:47 PM] &lt;BR /&gt;
 account_expiry_date:[Jan 1, 4712 6:08:47 PM] &lt;BR /&gt;
 islockedout:[false] &lt;BR /&gt;
 isactive:[true] &lt;BR /&gt;
 passwordexpiry_date:[Jul 30, 2014 6:26:37 PM] &lt;BR /&gt;
 admin_group:[Person User Admin Group] &lt;BR /&gt;
 ispublic:[true]],&lt;BR /&gt;
 user_owner=Person User Admin Group,&lt;BR /&gt;
 user=DATA_BOB_Truck3bobsurunc,&lt;BR /&gt;
 userUID=CCCCCQEBBBBDU1FMJJJJBlRlc3R2MgAAAAEQDDDDDDDkjBE=&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162132#M45882</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2020-09-28T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162133#M45883</link>
      <description>&lt;P&gt;What is it you want regex to do?&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 14:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162133#M45883</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-13T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162134#M45884</link>
      <description>&lt;P&gt;To be more clear, I just need to write a Regex on this entre output but I cannot get past the  duplicated fields as I am just trying to extract this data with some success. All the REGEX training on the planet may not be enough. &lt;/P&gt;

&lt;P&gt;This Data output is ClearTrust. The characters have been changed to conceal identities. The length of data has remained the same however.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 14:59:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162134#M45884</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2014-05-13T14:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162135#M45885</link>
      <description>&lt;P&gt;What fields do you want to extract?  What should happen with duplicated fields, extract first, extract last, or extract all?  Are you sure you need a regex at all?  Perhaps adding MV_ADD=true to your props.conf is enough.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 15:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162135#M45885</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-13T15:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162136#M45886</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;* | rex  max_match=0 "passwordexpiry_date\:\[(?&amp;lt;Password_Expiry_Date&amp;gt;.+?)\]"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 May 2014 15:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162136#M45886</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2014-05-13T15:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162137#M45887</link>
      <description>&lt;P&gt;That will give you a field called Password_Expiry_Date with the multiple values per event like you needed.  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/Rex" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162137#M45887</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2020-09-28T16:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162138#M45888</link>
      <description>&lt;P&gt;Hi Rich, &lt;BR /&gt;
Thanks for that information MV_ADD=True so would that allow values to pass through differently?&lt;BR /&gt;
Unfortunately what I have been given for data has been wrapped by another program. My options are limited. Outside of asking these guys to rewrite their output.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 15:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162138#M45888</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2014-05-13T15:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162139#M45889</link>
      <description>&lt;P&gt;Thanks dmaislin this is very helpfull. I will verify it against current output. Looks very promising.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 15:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162139#M45889</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2014-05-13T15:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162140#M45890</link>
      <description>&lt;P&gt;Hi Rich, &lt;BR /&gt;
Thanks for that information MV_ADD=True so would that allow values to pass through differently?&lt;BR /&gt;
Unfortunately what I have been given for data has been wrapped by another program. My options are limited. Outside of asking these guys to rewrite their output.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 15:48:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162140#M45890</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2014-05-13T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162141#M45891</link>
      <description>&lt;UL&gt;
&lt;LI&gt;| rex  max_match=0 "passwordexpiry_date:[(?&lt;PASSWORD_EXPIRY_DATE&gt;.+?)]"&lt;/PASSWORD_EXPIRY_DATE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;That will give you a field called Password_Expiry_Date with the multiple values per event like you needed. &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/Rex" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162141#M45891</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2020-09-28T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162142#M45892</link>
      <description>&lt;P&gt;MV_ADD = true will create a multivalue field rather than ignore duplicate field names.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 15:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162142#M45892</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-13T15:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex with multiple fields duplicated.  Yet data can be different?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162143#M45893</link>
      <description>&lt;P&gt;Thanks, this is a big help. I will work this into my query. What has been happening is fields that are duplicated just come into the _raw data flow in Splunk. So many good answers. I appreciate every one.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 16:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-with-multiple-fields-duplicated-Yet-data-can-be-different/m-p/162143#M45893</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2014-05-13T16:09:20Z</dc:date>
    </item>
  </channel>
</rss>

