<?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: group source types in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110437#M28878</link>
    <description>&lt;P&gt;Throws an error as it has by series and by newsrc&lt;/P&gt;

&lt;P&gt;Didnt get you this shouldnt be in your _internal index...???&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2015 00:21:41 GMT</pubDate>
    <dc:creator>athorat</dc:creator>
    <dc:date>2015-05-15T00:21:41Z</dc:date>
    <item>
      <title>group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110429#M28870</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am getting the list of sourcetype and its usage in GB.&lt;BR /&gt;
index=_internal source=*metrics.log | eval GB=kb/(1024*1024) | search group="per_sourcetype_thruput" | timechart span=1d sum(GB) by series limit=0 | sort -sourcetype&lt;/P&gt;

&lt;P&gt;Want to group/categorize certain source types , like those with ecsweb:prod:E1, ecsweb:prod:E2 and ecsweb:prod:E3 in Category Prod.&lt;/P&gt;

&lt;P&gt;Tried using the following query which does not work.&lt;BR /&gt;
index=_internal source=&lt;EM&gt;metrics.log | eval GB=kb/(1024*1024) | search group="per_sourcetype_thruput" | timechart span=1d sum(GB) by series limit=0 | sort +sourcetype| eval series =if(series ="ecsweb:&lt;/EM&gt;", "PROD", series)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110429#M28870</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2020-09-28T19:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110430#M28871</link>
      <description>&lt;P&gt;Something like this? However this sourcetype shouldnt be in _internal...&lt;/P&gt;

&lt;P&gt;index=_internal source=metrics.log group="per_sourcetype_thruput" sourcetype=ecsweb:prod:E* | eval GB=kb/(1024*1024)  | timechart span=1d sum(GB) by series limit=0 | sort +sourcetype &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110430#M28871</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2020-09-28T19:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110431#M28872</link>
      <description>&lt;P&gt;Filtering by sourcetype=ecsweb:prod:E* does return any results.&lt;BR /&gt;
So the goal is, when the first query returns the results. The source types should be categorised into buckets.&lt;BR /&gt;
like ECSweb:PROD :&lt;EM&gt;to PROD&lt;BR /&gt;
ECSweb:PERF:&lt;/EM&gt; to PERF.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110431#M28872</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-05-14T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110432#M28873</link>
      <description>&lt;P&gt;Run a rex to create a new field based on the sourcetype to capture the portion of the sourcetype you care about.  Use that new transformed sourcetype field instead.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110432#M28873</guid>
      <dc:creator>mmccul</dc:creator>
      <dc:date>2015-05-14T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110433#M28874</link>
      <description>&lt;P&gt;I am not sure about rex because the soruce types are being captured only challenge is to bucket them by name/similar names types into specific categories.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110433#M28874</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-05-14T17:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110434#M28875</link>
      <description>&lt;P&gt;That's the point.  You're capturing the sourcetypes into a field.  A transform to define a new field with the reduced portion allows you to clump them according to the pattern you identified into a new field.  rex field=sourcetype "^[^:]+:(?&amp;lt;newsrctyp&amp;gt;.*)" would strip out the portion up to and including the first colon for you and place into the field newsrctyp, which is now grouped.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110434#M28875</guid>
      <dc:creator>mmccul</dc:creator>
      <dc:date>2015-05-14T17:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110435#M28876</link>
      <description>&lt;P&gt;Hey So the sources are coming in a field called series&lt;/P&gt;

&lt;P&gt;index=_internal source=*metrics.log | eval GB=kb/(1024*1024) | search group="per_sourcetype_thruput" | timechart span=1d sum(GB) by series limit=0 | sort -sourcetype|&lt;/P&gt;

&lt;P&gt;so the source type here should be Series? Tried both, no luck.&lt;BR /&gt;
rex field=sourcetype "^[^:]+:(?&amp;lt;newsrctyp&amp;gt;.*)" &lt;/P&gt;

&lt;P&gt;Correct me if I am wrong.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Anil.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110435#M28876</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2020-09-28T19:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110436#M28877</link>
      <description>&lt;P&gt;You can try this, again this shouldnt be in your _internal index...&lt;/P&gt;

&lt;P&gt;index=_internal source=metrics.log group="per_sourcetype_thruput" | rex field=sourcetype "ecsweb:(?&amp;lt;newsrc&amp;gt;.*)" | eval GB=kb/(1024*1024) | timechart span=1d sum(GB)  by newsrc | sort -newsrc&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110436#M28877</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2020-09-28T19:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110437#M28878</link>
      <description>&lt;P&gt;Throws an error as it has by series and by newsrc&lt;/P&gt;

&lt;P&gt;Didnt get you this shouldnt be in your _internal index...???&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 00:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110437#M28878</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-05-15T00:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: group source types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110438#M28879</link>
      <description>&lt;P&gt;Updated search, please try.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 00:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-source-types/m-p/110438#M28879</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-05-15T00:50:24Z</dc:date>
    </item>
  </channel>
</rss>

