<?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: log sources in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426425#M74753</link>
    <description>&lt;P&gt;Think you’ve caused a bit of confusion by tabling the nonexistent source field &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Jun 2018 00:55:12 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-06-02T00:55:12Z</dc:date>
    <item>
      <title>log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426419#M74747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have been ask to generate report for top log sources which is generating lot of traffic.  I need help to generate report as &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; sourcetype&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone from group help me in this. Currently Im using  &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| metadata type=sources | where&lt;BR /&gt;
totalCount&amp;gt;0 | table source totalCount&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;where i get source &amp;amp; total count but Iam looking for     &amp;lt; sourcetype&amp;gt;   format.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426419#M74747</guid>
      <dc:creator>pradeep577</dc:creator>
      <dc:date>2018-06-01T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426420#M74748</link>
      <description>&lt;P&gt;Try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index="&amp;lt;yourIndexName&amp;gt;"
| search totalCount&amp;gt;0
| table sourcetype totalCount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426420#M74748</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-01T13:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426421#M74749</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thnk you for quick reply.&lt;BR /&gt;
I executed this query&lt;/P&gt;

&lt;P&gt;| metadata type=sourcetypes index="wineventlog"&lt;BR /&gt;
 | search totalCount&amp;gt;0&lt;BR /&gt;
 | table source totalCount&lt;/P&gt;

&lt;P&gt;Output is:&lt;/P&gt;

&lt;P&gt;Source: blank(empty)&lt;BR /&gt;
Total count : numbers&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426421#M74749</guid>
      <dc:creator>pradeep577</dc:creator>
      <dc:date>2018-06-01T13:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426422#M74750</link>
      <description>&lt;P&gt;If you get the data by sourcetype, you of course also need to table the sourcetype field, not the source field &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426422#M74750</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-01T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426423#M74751</link>
      <description>&lt;P&gt;Still same please see attached screenshot&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5079i76820F164812A40E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;It doesnt give me which logs are contributing to high license usage?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426423#M74751</guid>
      <dc:creator>pradeep577</dc:creator>
      <dc:date>2018-06-01T13:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426424#M74752</link>
      <description>&lt;P&gt;&lt;CODE&gt;| metadata type=sourcetypes&lt;/CODE&gt; doesn’t return a source field, only sourcetype and count and some time stamps (run it without the table command to see the full output).&lt;/P&gt;

&lt;P&gt;If you want to count just by sourcetype, just change your table command to show the sourcetype field instead of the source field.&lt;/P&gt;

&lt;P&gt;If you want to count by sourcetype and source, metadata command is not your friend. Try this in stead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index = yourindex by source,sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Jun 2018 00:53:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426424#M74752</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-02T00:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426425#M74753</link>
      <description>&lt;P&gt;Think you’ve caused a bit of confusion by tabling the nonexistent source field &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jun 2018 00:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426425#M74753</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-02T00:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: log sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426426#M74754</link>
      <description>&lt;P&gt;@FrankVI, thanks for catching that. I have made the correction!&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jun 2018 04:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-sources/m-p/426426#M74754</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-02T04:50:35Z</dc:date>
    </item>
  </channel>
</rss>

