<?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: How to use erex in a CLI search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266520#M80122</link>
    <description>&lt;P&gt;Thanks jkat54! That worked perfectly.  Sorry for the delayed reply, work got in the way of work.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 18:04:52 GMT</pubDate>
    <dc:creator>jphilput1</dc:creator>
    <dc:date>2016-08-03T18:04:52Z</dc:date>
    <item>
      <title>How to use erex in a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266517#M80119</link>
      <description>&lt;P&gt;I'm running into an issue with the syntax for a CLI search using erex.&lt;/P&gt;

&lt;P&gt;The problem seems to be with the double quotes.  I've tried single quoting the erex examples and counter examples, but none of it seems effective.  &lt;/P&gt;

&lt;P&gt;This search works in the GUI:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=name searchterm NOT otherterm |erex message examples="/foo/bar,/foobar" counterexamples="barfoo, foobar" |table item1,item2,item3,item4,item5 |uniq |sort item3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the CLI, I've tried it a couple of different ways, and the closest I've gotten to a working search is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=name searchterm NOT otherterm |erex message examples='/foo/bar,/foobar' counterexamples='barfoo, foobar' |table item1,item2,item3,item4,item5 |uniq |sort item3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the CLI search results in "INFO: No matching fields exist"&lt;/P&gt;

&lt;P&gt;Do any of you know what I'm doing wrong here?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 22:11:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266517#M80119</guid>
      <dc:creator>jphilput1</dc:creator>
      <dc:date>2016-05-22T22:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use erex in a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266518#M80120</link>
      <description>&lt;P&gt;I have never used the CLI, but I'm guessing from your description that it involves putting your SPL search string inside quotes and that the " inside your search are interfering with that? If that's the case, have you tried escaping all " with a backslash?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 14:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266518#M80120</guid>
      <dc:creator>gabriel_vasseur</dc:creator>
      <dc:date>2016-05-23T14:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use erex in a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266519#M80121</link>
      <description>&lt;P&gt;What is the CLI command you're using?&lt;/P&gt;

&lt;P&gt;Should be like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk search 'index=name searchterm NOT otherterm |erex message examples="/foo/bar,/foobar" counterexamples="barfoo, foobar" |table item1,item2,item3,item4,item5 |uniq |sort item3'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 May 2016 14:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266519#M80121</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-23T14:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use erex in a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266520#M80122</link>
      <description>&lt;P&gt;Thanks jkat54! That worked perfectly.  Sorry for the delayed reply, work got in the way of work.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 18:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266520#M80122</guid>
      <dc:creator>jphilput1</dc:creator>
      <dc:date>2016-08-03T18:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use erex in a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266521#M80123</link>
      <description>&lt;P&gt;No problem at all, thanks for coming back! @jphilput1&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 20:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-erex-in-a-CLI-search/m-p/266521#M80123</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-08-03T20:13:15Z</dc:date>
    </item>
  </channel>
</rss>

