<?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: Splunk Transforms REGEX Wildcard Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458052#M129368</link>
    <description>&lt;P&gt;You can put one of your sample log in &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; and test which regex runs faster and with minimum number of steps. From your above 4, I would try &lt;CODE&gt;REGEX = ^.&lt;/CODE&gt; as well.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 14:19:18 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-09-14T14:19:18Z</dc:date>
    <item>
      <title>Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458051#M129367</link>
      <description>&lt;P&gt;We are routing events to some_index based on the source during parsing.&lt;/P&gt;

&lt;P&gt;Part of the source goes to "original_index", which is set in "inputs.conf", and part of them goes to "some_other_index"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
    [source::some_part_of_source]
    TRANSFORMS-index_routing = route_to_some_other_index

transforms.conf
    [route_to_some_other_index]
    REGEX = .
    DEST_KEY = _MetaData:Index
    FORMAT = some_other_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We receive lots of events per second and we are concerned that this transforms is causing the delay in indexing (we are seeing indexing lag).&lt;/P&gt;

&lt;P&gt;Now the query I have is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;a) REGEX = .
b) REGEX = (.)
c) REGEX = .*
d) REGEX = .*?
e) REGEX = ^.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does all of the above REGEX matches mean the same or that any one is better over the other, which could help speed up the transformation and reduce the indexing lag?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458051#M129367</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2020-09-29T21:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458052#M129368</link>
      <description>&lt;P&gt;You can put one of your sample log in &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; and test which regex runs faster and with minimum number of steps. From your above 4, I would try &lt;CODE&gt;REGEX = ^.&lt;/CODE&gt; as well.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458052#M129368</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-09-14T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458053#M129369</link>
      <description>&lt;P&gt;Given the combined list:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;REGEX = .&lt;/LI&gt;
&lt;LI&gt;REGEX = (.)&lt;/LI&gt;
&lt;LI&gt;REGEX = .*&lt;/LI&gt;
&lt;LI&gt;REGEX = .*?&lt;/LI&gt;
&lt;LI&gt;REGEX = ^.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I'd expect that 1, and 5 will be very similar, and the best choices.  2 requires the regex engine to create a capture group, which you don't appear to need.  3, depending on the efficiency of the regex engine, may decide to consider all the characters in the event.  4 should reduce to 1, but the regex engine will have to take that extra step.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458053#M129369</guid>
      <dc:creator>LearninStuff</dc:creator>
      <dc:date>2018-09-14T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458054#M129370</link>
      <description>&lt;P&gt;--  if this transforms is causing the delay in indexing..&lt;BR /&gt;
I doubt that the regex can make the difference - I would check &lt;EM&gt;standard&lt;/EM&gt; delay causes... &lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458054#M129370</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-09-14T14:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458055#M129371</link>
      <description>&lt;P&gt;If you put one of this REGEX you will redirect all your events from your "source" in some_other_index. If you want to redirect only one part of the source, you need to use some keywords (which is only in events that you want redirect in other index) in your REGEX. The better REGEX to match "all"  with only one match &amp;gt;&amp;gt; .*  and without any group&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458055#M129371</guid>
      <dc:creator>desax</dc:creator>
      <dc:date>2020-09-29T21:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458056#M129372</link>
      <description>&lt;P&gt;What does your inputs.conf entry looks like for this? Best scenario here would be that you split the input stanza for this source from original and then assign index at inputs.conf (on forwarder) level, completely avoiding index-time processing of routing to different index.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 16:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458056#M129372</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-09-14T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458057#M129373</link>
      <description>&lt;P&gt;Inputs are from Google Pubsub Queue, hence I would not be able to assign both the original index and some index from the inputs.conf. &lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 18:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458057#M129373</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2018-09-14T18:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458058#M129374</link>
      <description>&lt;P&gt;@somesoni2  I am afraid ^. does not MATCH ALL in &lt;A href="https://regex101.com"&gt;https://regex101.com&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 18:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458058#M129374</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2018-09-14T18:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Transforms REGEX Wildcard Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458059#M129375</link>
      <description>&lt;P&gt;Any specific reason to separate them out by indexes?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 18:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Transforms-REGEX-Wildcard-Help/m-p/458059#M129375</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-09-14T18:39:39Z</dc:date>
    </item>
  </channel>
</rss>

