<?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 search within the source names and source type names? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65436#M13134</link>
    <description>&lt;P&gt;Wow, that works like magic, thanks!!&lt;/P&gt;

&lt;P&gt;One tiny typo in the second one:&lt;BR /&gt;
 match(sourcetypes,"prod")&lt;BR /&gt;
should be&lt;BR /&gt;
 match(sourcetype,"prod")&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2012 22:44:24 GMT</pubDate>
    <dc:creator>mdickey</dc:creator>
    <dc:date>2012-09-19T22:44:24Z</dc:date>
    <item>
      <title>How can I search within the source names and source type names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65432#M13130</link>
      <description>&lt;P&gt;I'm using an existing Splunk instance that already has hundreds of sources and source types.  How can I search among the source names and source type names to find sources of interest?  For example,  I would like to know the names of all sources that contain the string "prod" in the source name itself.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 20:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65432#M13130</guid>
      <dc:creator>mdickey</dc:creator>
      <dc:date>2012-09-19T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search within the source names and source type names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65433#M13131</link>
      <description>&lt;P&gt;That's easy, just search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sources | where match(source,"prod")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes | where match(sourcetype,"prod")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to get just a list of the sourceytpes or sources, with a little info about each. Note that the match function uses regular expressions. To actually search the data, you can use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="*prod*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="*prod*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 20:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65433#M13131</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-19T20:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search within the source names and source type names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65434#M13132</link>
      <description>&lt;P&gt;Sorry, I must not have explained myself well.  Your suggestion will search the actual event data.  I don't want to search the data. I only want to get a back a list of source names that match.  I want to search this list of source names themselves, not the data in the sources.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 21:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65434#M13132</guid>
      <dc:creator>mdickey</dc:creator>
      <dc:date>2012-09-19T21:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search within the source names and source type names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65435#M13133</link>
      <description>&lt;P&gt;Updated my answer per your comments!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 21:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65435#M13133</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-19T21:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search within the source names and source type names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65436#M13134</link>
      <description>&lt;P&gt;Wow, that works like magic, thanks!!&lt;/P&gt;

&lt;P&gt;One tiny typo in the second one:&lt;BR /&gt;
 match(sourcetypes,"prod")&lt;BR /&gt;
should be&lt;BR /&gt;
 match(sourcetype,"prod")&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 22:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65436#M13134</guid>
      <dc:creator>mdickey</dc:creator>
      <dc:date>2012-09-19T22:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search within the source names and source type names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65437#M13135</link>
      <description>&lt;P&gt;Thanks for the catch on the typo, I fixed it!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 23:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-within-the-source-names-and-source-type-names/m-p/65437#M13135</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-19T23:38:48Z</dc:date>
    </item>
  </channel>
</rss>

