<?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: Basic Search with Sourcetype Filter Issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210320#M61507</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I did some more testing and noticed a typo in my transforms.conf. &lt;/P&gt;

&lt;P&gt;I had missed off the 'sourcetype::' directive. e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FORMAT = ba.com:authentication:dob
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;rather than&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FORMAT = sourcetype::ba.com:authentication:dob
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Strangley, Splunk still recognised ba.com:authentication:dob as a sourcetype but I just couldn't use it as a search filter!&lt;/P&gt;

&lt;P&gt;Thanks for you responses,&lt;BR /&gt;
Mark.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2017 12:38:44 GMT</pubDate>
    <dc:creator>markwymer</dc:creator>
    <dc:date>2017-01-09T12:38:44Z</dc:date>
    <item>
      <title>Basic Search with Sourcetype Filter Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210315#M61502</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm not sure whether this is a bug or a 'holiday hangover'!&lt;/P&gt;

&lt;P&gt;I used props.conf and transform.conf to re-sourcetype a specific message to a new sourcetype ( i will, also, be changing the index as well when I am satisfied!). The events show up in a search e.g.&lt;BR /&gt;
    index=ba.com.logs DOB_RESULTS&lt;BR /&gt;
(DOB_RESULTS is the same string that I use in my regex in the transforms.conf)&lt;/P&gt;

&lt;P&gt;There are 270  results returned and when I check the 'Sourcetype' field on the left it does show that all 270 events are now in the new Sourcetype - ba.com:authentication:dob&lt;/P&gt;

&lt;P&gt;However, when I click on the new sourcetype to add it to my search string it returns zero results?&lt;/P&gt;

&lt;P&gt;Throwing in a few wildcard's returns the correct results though....&lt;BR /&gt;
    index=ba.com.logs DOB_RESULTS sourcetype="ba.com:authentication*"&lt;BR /&gt;
    or&lt;BR /&gt;
    index=ba.com.logs DOB_RESULTS sourcetype="*authentication:dob"&lt;/P&gt;

&lt;P&gt;Am I missing a trick here or is this a bug?&lt;/P&gt;

&lt;P&gt;Cheers and Happy New Year to you all.&lt;BR /&gt;
Mark&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210315#M61502</guid>
      <dc:creator>markwymer</dc:creator>
      <dc:date>2020-09-29T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Search with Sourcetype Filter Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210316#M61503</link>
      <description>&lt;P&gt;Am I not 100% that having two colons in a metadata field like sourcetype is a good thing.  Reading the segmenters.conf spec (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Segmentersconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Segmentersconf&lt;/A&gt;), colon is a minor breaker and how splunk indexes up to the first minor breaker seems to suggest that it might be your problem. I am no expert on this aspect of Splunk, but it may be something to consider by replacing the second colon with an underscore.&lt;/P&gt;

&lt;P&gt;Do you have anywhere else in your setup that has sourcetypes with two colons and this problem does not occur? If so, then you can probably ignore my first comments. &lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210316#M61503</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-12-29T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Search with Sourcetype Filter Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210317#M61504</link>
      <description>&lt;P&gt;How are you overriding/renaming the sourcetype? Also, can you try this and see if this works (run in smart mode)?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ba.com.logs DOB_RESULTS | search sourcetype="*authentication:dob"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210317#M61504</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-29T16:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Search with Sourcetype Filter Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210318#M61505</link>
      <description>&lt;P&gt;Hi there, thanks for your response / suggestion. Doing the 'second' search made no difference.&lt;/P&gt;

&lt;P&gt;I'm doing the sourcetype override in the transforms.conf file. I 99.999% certain that is working correctly as I the initial search (without the sourcetype filter) works fine and the sourcetype field (in the list of 'Interesting Fields') shows the name correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 09:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210318#M61505</guid>
      <dc:creator>markwymer</dc:creator>
      <dc:date>2016-12-30T09:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Search with Sourcetype Filter Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210319#M61506</link>
      <description>&lt;P&gt;Hi there, thanks for your response.&lt;/P&gt;

&lt;P&gt;I haven't read that particular document, thanks for the link. I did, however find this old Blog post - &lt;A href="http://blogs.splunk.com/2012/08/10/sourcetypes-what%E2%80%99s-in-name/"&gt;http://blogs.splunk.com/2012/08/10/sourcetypes-what%E2%80%99s-in-name/&lt;/A&gt; - that seems to suggest that is is possible.&lt;/P&gt;

&lt;P&gt;I just did a search of the various props files that come with the Enterprise Security app and there are loads of pre-installed apps that use multiple colons in their sourcetype names. However, I can't find anything (except my own) that use a combination of periods and colons. I'll test that.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Mark.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 10:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210319#M61506</guid>
      <dc:creator>markwymer</dc:creator>
      <dc:date>2016-12-30T10:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Search with Sourcetype Filter Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210320#M61507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I did some more testing and noticed a typo in my transforms.conf. &lt;/P&gt;

&lt;P&gt;I had missed off the 'sourcetype::' directive. e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FORMAT = ba.com:authentication:dob
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;rather than&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FORMAT = sourcetype::ba.com:authentication:dob
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Strangley, Splunk still recognised ba.com:authentication:dob as a sourcetype but I just couldn't use it as a search filter!&lt;/P&gt;

&lt;P&gt;Thanks for you responses,&lt;BR /&gt;
Mark.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 12:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-Search-with-Sourcetype-Filter-Issue/m-p/210320#M61507</guid>
      <dc:creator>markwymer</dc:creator>
      <dc:date>2017-01-09T12:38:44Z</dc:date>
    </item>
  </channel>
</rss>

