<?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 Why does searching by source not work sometimes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-searching-by-source-not-work-sometimes/m-p/277804#M83810</link>
    <description>&lt;P&gt;This command does not work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grb_test sourcetype=QServiceManagerFormat |  source="\\\\netapp4\\Quants\\ST\logs\\dailyTest20151020_152356rhbyvk\\qservicemanager.20151020.log"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one returns results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grb_test sourcetype=QServiceManagerFormat 
| where source="\\\\netapp4\\Quants\\ST\logs\\dailyTest20151020_152356rhbyvk\\qservicemanager.20151020.log"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I cannot figure out a reason why.  I've tried all manner of escaping the &lt;STRONG&gt;source&lt;/STRONG&gt; field in the first search, but can't get it to work.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2015 20:55:45 GMT</pubDate>
    <dc:creator>gbronner_rbc</dc:creator>
    <dc:date>2015-10-20T20:55:45Z</dc:date>
    <item>
      <title>Why does searching by source not work sometimes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-searching-by-source-not-work-sometimes/m-p/277804#M83810</link>
      <description>&lt;P&gt;This command does not work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grb_test sourcetype=QServiceManagerFormat |  source="\\\\netapp4\\Quants\\ST\logs\\dailyTest20151020_152356rhbyvk\\qservicemanager.20151020.log"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one returns results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grb_test sourcetype=QServiceManagerFormat 
| where source="\\\\netapp4\\Quants\\ST\logs\\dailyTest20151020_152356rhbyvk\\qservicemanager.20151020.log"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I cannot figure out a reason why.  I've tried all manner of escaping the &lt;STRONG&gt;source&lt;/STRONG&gt; field in the first search, but can't get it to work.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 20:55:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-searching-by-source-not-work-sometimes/m-p/277804#M83810</guid>
      <dc:creator>gbronner_rbc</dc:creator>
      <dc:date>2015-10-20T20:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does searching by source not work sometimes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-searching-by-source-not-work-sometimes/m-p/277805#M83811</link>
      <description>&lt;P&gt;I think the only thing that should follow a pipe(  | ) is a splunk command, not a field name. &lt;/P&gt;

&lt;P&gt;That is why it worked when you placed a command, 'where' in your case. &lt;/P&gt;

&lt;P&gt;Your search should simply be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grb_test sourcetype=QServiceManagerFormat source="\\\\netapp4\\Quants\\ST\logs\\dailyTest20151020_152356rhbyvk\\qservicemanager.20151020.log"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Oct 2015 22:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-searching-by-source-not-work-sometimes/m-p/277805#M83811</guid>
      <dc:creator>abhijitmishra87</dc:creator>
      <dc:date>2015-10-20T22:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does searching by source not work sometimes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-searching-by-source-not-work-sometimes/m-p/277806#M83812</link>
      <description>&lt;P&gt;Unfortunately, that does't work either;  -- the pipe in the first input was actually an artifact of editing.&lt;/P&gt;

&lt;P&gt;The query:&lt;BR /&gt;
index=grb_test sourcetype=QServiceManagerFormat source="\\netapp4\Quants\ST\logs\dailyTest20151020_152356rhbyvk\qservicemanager.20151020.log"&lt;/P&gt;

&lt;P&gt;produces zero rows.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-searching-by-source-not-work-sometimes/m-p/277806#M83812</guid>
      <dc:creator>gbronner_rbc</dc:creator>
      <dc:date>2020-09-29T07:38:57Z</dc:date>
    </item>
  </channel>
</rss>

