<?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: Is it possible to create an input that has a regular expression for digits? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-create-an-input-that-has-a-regular-expression/m-p/293272#M88532</link>
    <description>&lt;P&gt;Also remember that if your looking for any number, I think &lt;CODE&gt;\d+&lt;/CODE&gt; is that character class. Although I don't recall if those are honored in the monitor stanza but still worth knowing to keep it clean.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 12:28:44 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2017-05-16T12:28:44Z</dc:date>
    <item>
      <title>Is it possible to create an input that has a regular expression for digits?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-create-an-input-that-has-a-regular-expression/m-p/293270#M88530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is it possible to create an input that has a regex on digits?  For example, I have a source that begins with /gsysp and I want to monitor anything that has /gsysp followed by digits.  So, would &lt;CODE&gt;/gsysp[0-9]*&lt;/CODE&gt;  work on a monitor stanza?&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 12:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-create-an-input-that-has-a-regular-expression/m-p/293270#M88530</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2017-05-15T12:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create an input that has a regular expression for digits?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-create-an-input-that-has-a-regular-expression/m-p/293271#M88531</link>
      <description>&lt;P&gt;Take a look at the section titled "Wildcards and regular expression metacharacters" in this section of the documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Specifyinputpathswithwildcards"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;According to the docs, "If the regular expression metacharacters occur within or after a segment that contains a wildcard, Splunk Enterprise treats the metacharacters as a regular expression and matches files to monitor accordingly."&lt;/P&gt;

&lt;P&gt;By segment, it means the blocks of text between directory separators.  So this looks like it would work.  The one thing you might need to change is add a + after the [0-9].  Otherwise, it will only look for a single digit and from your question it sounded like it could be more than a single digit.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 13:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-create-an-input-that-has-a-regular-expression/m-p/293271#M88531</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2017-05-15T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create an input that has a regular expression for digits?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-create-an-input-that-has-a-regular-expression/m-p/293272#M88532</link>
      <description>&lt;P&gt;Also remember that if your looking for any number, I think &lt;CODE&gt;\d+&lt;/CODE&gt; is that character class. Although I don't recall if those are honored in the monitor stanza but still worth knowing to keep it clean.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 12:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-create-an-input-that-has-a-regular-expression/m-p/293272#M88532</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-05-16T12:28:44Z</dc:date>
    </item>
  </channel>
</rss>

