<?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 How to extract Index time in multiple regex match? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-Index-time-in-multiple-regex-match/m-p/657985#M17394</link>
    <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;
&lt;P&gt;I have a index-time field extraction question, here is my raw log :&lt;BR /&gt;wheel:x:10:user1,user2,user3&lt;/P&gt;
&lt;P&gt;I would like to use props.conf and transforms.conf to extract the users&lt;/P&gt;
&lt;P&gt;props.conf :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[mysourcetype]
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TRANSFORMS-users = get-users&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;transforms.conf :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[get-users]
REGEX = (\d:|,)(?&amp;lt;user&amp;gt;\w+)
FORMAT = users::$1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With my current config, I will only be able to extract the first match of my regex who is here the user1.&lt;BR /&gt;How could I extract and store each user value ?&lt;/P&gt;
&lt;P&gt;Thanks for your time,&lt;BR /&gt;GaetanVP&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 19:02:41 GMT</pubDate>
    <dc:creator>GaetanVP</dc:creator>
    <dc:date>2023-09-20T19:02:41Z</dc:date>
    <item>
      <title>How to extract Index time in multiple regex match?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-Index-time-in-multiple-regex-match/m-p/657985#M17394</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;
&lt;P&gt;I have a index-time field extraction question, here is my raw log :&lt;BR /&gt;wheel:x:10:user1,user2,user3&lt;/P&gt;
&lt;P&gt;I would like to use props.conf and transforms.conf to extract the users&lt;/P&gt;
&lt;P&gt;props.conf :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[mysourcetype]
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TRANSFORMS-users = get-users&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;transforms.conf :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[get-users]
REGEX = (\d:|,)(?&amp;lt;user&amp;gt;\w+)
FORMAT = users::$1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With my current config, I will only be able to extract the first match of my regex who is here the user1.&lt;BR /&gt;How could I extract and store each user value ?&lt;/P&gt;
&lt;P&gt;Thanks for your time,&lt;BR /&gt;GaetanVP&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 19:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-Index-time-in-multiple-regex-match/m-p/657985#M17394</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2023-09-20T19:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Index time extraction multiple regex match</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-Index-time-in-multiple-regex-match/m-p/658044#M17399</link>
      <description>&lt;P&gt;Index-time extractions don't have an equivalent to the &lt;FONT face="courier new,courier"&gt;max_match&lt;/FONT&gt; option of the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command.&amp;nbsp; Consider extracting all users together and then extracting them at search time.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[get-users]
REGEX = (\d:)(?&amp;lt;user&amp;gt;.+)
FORMAT = users::$1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 18:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-Index-time-in-multiple-regex-match/m-p/658044#M17399</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-09-19T18:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Index time extraction multiple regex match</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-Index-time-in-multiple-regex-match/m-p/658274#M17415</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the information, I will try to do that !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;SPAN&gt;GaetanVP&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 12:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-Index-time-in-multiple-regex-match/m-p/658274#M17415</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2023-09-21T12:41:04Z</dc:date>
    </item>
  </channel>
</rss>

