<?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: Cannot search using sourcetype but can search with index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105955#M27534</link>
    <description>&lt;P&gt;Perfect!!!!!&lt;BR /&gt;
It worked. &lt;BR /&gt;
Thanks. Appreciate that.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2011 02:51:12 GMT</pubDate>
    <dc:creator>KarunK</dc:creator>
    <dc:date>2011-11-08T02:51:12Z</dc:date>
    <item>
      <title>Cannot search using sourcetype but can search with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105953#M27532</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an app in my server, which is monitoring a directory (D:\Custom Install\Splunk_Sample_Data\Splunk_Pdn_Sample_Data\mms_export_e_wms_90) for a set of logs.&lt;BR /&gt;
eg: mms_export_e_wms_90_10.152.59.75_20111107_185001_47217&lt;/P&gt;

&lt;P&gt;When i search using the idex i can see the results. But not with sourcetype. &lt;BR /&gt;
Can i get some advise ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;index="mms_export_e_wms_90" - works fine&lt;BR /&gt;
index="mms_export_e_wms_90" sourcetype="mms_export_e_wms_90" - Also works fine&lt;/P&gt;

&lt;P&gt;But - sourcetype="mms_export_e_wms_90" - gives me no results&lt;/P&gt;

&lt;P&gt;My config files are as below.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;input.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[monitor://D:\Custom Install\Splunk_Sample_Data\Splunk_Pdn_Sample_Data\mms_export_e_wms_90]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
host = &lt;BR /&gt;
host_regex = (?i)[^\s]+mms_export_e_wms_90_(\d+.\d+.\d+.\d+)_\d+&lt;BR /&gt;
index = mms_export_e_wms_90&lt;BR /&gt;
sourcetype = mms_export_e_wms_90&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[mms_export_e_wms_90]&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
TRANSFORMS-comment = hash_comment&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TZ=UTC&lt;BR /&gt;
TIME_PREFIX=\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\s&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d %T&lt;BR /&gt;
REPORT-fields = mms_export_e_wms_90_fields&lt;BR /&gt;
EXTRACT-uri_schema = (?i)^(?:[^\s]* ){47}((?&lt;CS_URI_SCHEME&gt;[^:/?#]+):)?(//(?&lt;CS_URI_AUTHORITY&gt;[^/?#]&lt;EM&gt;))?(?&lt;CS_URI_STEM2&gt;[^?#|\s]&lt;/CS_URI_STEM2&gt;&lt;/EM&gt;)(\?(?&lt;CS_URI_QUERY&gt;[^#|^\s]&lt;EM&gt;))?(#(?&lt;CS_URI_FRAGMENT&gt;.&lt;/CS_URI_FRAGMENT&gt;&lt;/EM&gt;[^\s]))?&lt;/CS_URI_QUERY&gt;&lt;/CS_URI_AUTHORITY&gt;&lt;/CS_URI_SCHEME&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[hash_comment]&lt;BR /&gt;
REGEX           = ^#&lt;BR /&gt;
DEST_KEY        = queue&lt;BR /&gt;
FORMAT          = nullQueue&lt;/P&gt;

&lt;P&gt;[mms_export_e_wms_90_fields]&lt;BR /&gt;
DELIMS          = " "&lt;BR /&gt;
FIELDS          = "c-ip", "date", "time", "c-dns", "cs-uri-stem", "c-starttime", "x-duration", "c-rate", "c-status", "c-playerid", "c-playerversion", "c-playerlanguage", "cs(User-Agent)", "cs(Referer)", "c-hostexe", "c-hostexever", "c-os", "c-osversion", "c-cpu", "filelength", "filesize", "avgbandwidth", "protocol", "transport", "audiocodec", "videocodec", "channelURL", "sc-bytes", "c-bytes", "s-pkts-sent", "c-pkts-received", "c-pkts-lost-client", "c-pkts-lost-net", "c-pkts-lost-cont-net", "c-resendreqs", "c-pkts-recovered-ECC", "c-pkts-recovered-resent", "c-buffercount", "c-totalbuffertime", "c-quality", "s-ip", "s-dns", "s-totalclients", "s-cpu-util", "cs_user_name", "s_session_id", "s_content_path", "cs_url", "cs_media_name", "c_max_bandwidth", "cs_media_role", "s_proxied", "SE-action", "SE-bytes", "Username"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105953#M27532</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2020-09-28T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search using sourcetype but can search with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105954#M27533</link>
      <description>&lt;P&gt;You need to add the &lt;CODE&gt;mms_export_e_wms_90&lt;/CODE&gt; index to your default index list.  You can do that via Manager &amp;gt; Access Controls &amp;gt; Roles &amp;gt; Your Role and then add &lt;CODE&gt;mms_export_e_wms_90&lt;/CODE&gt; to the selected indexes list under "Indexes searched by default".  &lt;/P&gt;

&lt;P&gt;Click "Save" to complete the action, and now you can try your search again without the index specification.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 02:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105954#M27533</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-11-08T02:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search using sourcetype but can search with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105955#M27534</link>
      <description>&lt;P&gt;Perfect!!!!!&lt;BR /&gt;
It worked. &lt;BR /&gt;
Thanks. Appreciate that.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 02:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105955#M27534</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2011-11-08T02:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search using sourcetype but can search with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105956#M27535</link>
      <description>&lt;P&gt;Sure thing.  Be sure to vote up my answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 02:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105956#M27535</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-11-08T02:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search using sourcetype but can search with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105957#M27536</link>
      <description>&lt;P&gt;This also worked for me.  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 22:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-using-sourcetype-but-can-search-with-index/m-p/105957#M27536</guid>
      <dc:creator>kurtus</dc:creator>
      <dc:date>2012-05-17T22:17:46Z</dc:date>
    </item>
  </channel>
</rss>

