<?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 can I run a search if a field contains the &amp;quot;|&amp;quot; character? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352365#M104291</link>
    <description>&lt;P&gt;Hey @hsu88888, if DalJeanis and Somesoni2 solved your problem, please don't forget to accept the answer! You can upvote posts as well. (Karma points will be awarded for either action.) Happy Splunking!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 23:05:51 GMT</pubDate>
    <dc:creator>lfedak_splunk</dc:creator>
    <dc:date>2017-09-21T23:05:51Z</dc:date>
    <item>
      <title>How can I run a search if a field contains the "|" character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352362#M104288</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I need to count  the event log line contains AAA|Y|42 but  "|" is the pipeline command so that I got error as the following search:&lt;BR /&gt;
I tried to use " double quote  at two sides of the string but no return result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=transaction sourcetype=transaction_270 *AAA|Y|42*
| chart count by region_id, partner_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk will treat Y is the command and got this error:&lt;BR /&gt;
Search Factory: Unknown search command 'y'.&lt;/P&gt;

&lt;P&gt;Please help me with solution.&lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 18:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352362#M104288</guid>
      <dc:creator>hsu88888</dc:creator>
      <dc:date>2017-09-20T18:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a search if a field contains the "|" character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352363#M104289</link>
      <description>&lt;P&gt;Just enclose &lt;CODE&gt;*AAA|Y|42*&lt;/CODE&gt; in double quotes. It'll be then treated as string.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=transaction sourcetype=transaction_270 "*AAA|Y|42*"
 | chart count by region_id, partner_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2017 18:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352363#M104289</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-20T18:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a search if a field contains the "|" character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352364#M104290</link>
      <description>&lt;P&gt;This answer is correct and specific for that spot in a search, or for after the command &lt;CODE&gt;| search&lt;/CODE&gt;.  If it's inside a mapped search or a regex, use the rules for wherever it is (usually escape with &lt;CODE&gt;\&lt;/CODE&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 19:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352364#M104290</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-20T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a search if a field contains the "|" character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352365#M104291</link>
      <description>&lt;P&gt;Hey @hsu88888, if DalJeanis and Somesoni2 solved your problem, please don't forget to accept the answer! You can upvote posts as well. (Karma points will be awarded for either action.) Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 23:05:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352365#M104291</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-09-21T23:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a search if a field contains the "|" character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352366#M104292</link>
      <description>&lt;P&gt;No results found. I already said that in my question&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 01:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352366#M104292</guid>
      <dc:creator>hsu88888</dc:creator>
      <dc:date>2017-09-22T01:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a search if a field contains the "|" character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352367#M104293</link>
      <description>&lt;P&gt;No, double quote won't find any event.&lt;BR /&gt;
This is the right solution that I use and work:&lt;BR /&gt;
*AAA*Y*42*R&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352367#M104293</guid>
      <dc:creator>hsu88888</dc:creator>
      <dc:date>2020-09-29T15:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a search if a field contains the "|" character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352368#M104294</link>
      <description>&lt;P&gt;No, double quote won't find any event.&lt;BR /&gt;
This is the right solution that I use and work:&lt;BR /&gt;
*AAA*Y*42*R&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-search-if-a-field-contains-the-quot-quot/m-p/352368#M104294</guid>
      <dc:creator>hsu88888</dc:creator>
      <dc:date>2020-09-29T15:57:35Z</dc:date>
    </item>
  </channel>
</rss>

