<?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 needed for sourcetype forcing in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Regex-needed-for-sourcetype-forcing/m-p/581455#M8665</link>
    <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*asdf*&lt;/FONT&gt; is not a valid regular expression.&amp;nbsp; Use &lt;FONT face="courier new,courier"&gt;asdf&lt;/FONT&gt;.&amp;nbsp; There is an implied wildcard at the beginning and end of every regex unless specified otherwise with &lt;FONT face="courier new,courier"&gt;^&lt;/FONT&gt; and/or &lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;regex101.com is a great place to test expressions.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 13:38:21 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-01-18T13:38:21Z</dc:date>
    <item>
      <title>Regex needed for sourcetype forcing</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Regex-needed-for-sourcetype-forcing/m-p/581453#M8664</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a sourcetype in which we have some events with a keyword like asdf. In some events it comes in between and some events at the end.&lt;/P&gt;&lt;P&gt;I need to forward all these logs to another sourcetype with props and transforms.&lt;/P&gt;&lt;P&gt;[generic_sourcetype_routing_asdf]&lt;BR /&gt;REGEX =&amp;nbsp;&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;FORMAT = sourcetype::asdf_logs&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[current_sourcetype]&lt;BR /&gt;TRANSFORMS-sourcetype_routing = generic_sourcetype_routing_asdf&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the REGEX part I would like to know if only keeping asdf or *asdf * would work. I can't put the regex for complete log format since there are multiple formats. So I need to inform splunk to pass any event with asdf anywhere in it should be forwarded to the new one. Please suggest.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Maria Arokiaraj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 13:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Regex-needed-for-sourcetype-forcing/m-p/581453#M8664</guid>
      <dc:creator>maria1991</dc:creator>
      <dc:date>2022-01-18T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regex needed for sourcetype forcing</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Regex-needed-for-sourcetype-forcing/m-p/581455#M8665</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*asdf*&lt;/FONT&gt; is not a valid regular expression.&amp;nbsp; Use &lt;FONT face="courier new,courier"&gt;asdf&lt;/FONT&gt;.&amp;nbsp; There is an implied wildcard at the beginning and end of every regex unless specified otherwise with &lt;FONT face="courier new,courier"&gt;^&lt;/FONT&gt; and/or &lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;regex101.com is a great place to test expressions.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 13:38:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Regex-needed-for-sourcetype-forcing/m-p/581455#M8665</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-18T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regex needed for sourcetype forcing</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Regex-needed-for-sourcetype-forcing/m-p/581598#M8666</link>
      <description>&lt;P&gt;Just adding the keyword asdf worked for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 08:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Regex-needed-for-sourcetype-forcing/m-p/581598#M8666</guid>
      <dc:creator>maria1991</dc:creator>
      <dc:date>2022-01-19T08:55:32Z</dc:date>
    </item>
  </channel>
</rss>

