<?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: Using LOOKUP to insert a Regex string - is it possible? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322841#M161439</link>
    <description>&lt;P&gt;&lt;CODE&gt;expression&lt;/CODE&gt; is the field produced by the automatic lookup.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2017 19:18:49 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2017-04-10T19:18:49Z</dc:date>
    <item>
      <title>Using LOOKUP to insert a Regex string - is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322838#M161436</link>
      <description>&lt;P&gt;I want to insert a different regex string into my query for each host.  I am thinking that a way to achieve this is by making a lookup into a CSV  to retrieve the regex string, allocating to a new field, and then inserting it further on in the query.&lt;/P&gt;

&lt;P&gt;Is this possible or ridiculous?&lt;/P&gt;

&lt;P&gt;Thanks for your advice&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 10:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322838#M161436</guid>
      <dc:creator>ipicbc</dc:creator>
      <dc:date>2017-04-10T10:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using LOOKUP to insert a Regex string - is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322839#M161437</link>
      <description>&lt;P&gt;That's entirely possible. Say your lookup looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host,expression
A,foo
B,bar
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add your lookup to your data as automatic, and search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | where match(some_field, expression)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That would filter to only keep events where the host-based expression matches some_field.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322839#M161437</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-04-10T13:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using LOOKUP to insert a Regex string - is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322840#M161438</link>
      <description>&lt;P&gt;Thanks. How would I get the regex statement into expression?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 16:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322840#M161438</guid>
      <dc:creator>ipicbc</dc:creator>
      <dc:date>2017-04-10T16:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using LOOKUP to insert a Regex string - is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322841#M161439</link>
      <description>&lt;P&gt;&lt;CODE&gt;expression&lt;/CODE&gt; is the field produced by the automatic lookup.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 19:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-LOOKUP-to-insert-a-Regex-string-is-it-possible/m-p/322841#M161439</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-04-10T19:18:49Z</dc:date>
    </item>
  </channel>
</rss>

