<?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 Add specific fields into the timechart OTHER category. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-specific-fields-into-the-timechart-OTHER-category/m-p/166171#M47321</link>
    <description>&lt;P&gt;I'm generating a report of the daily usage of my users indexes over the past week using this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-7d@d latest=@d index="_internal" source="*metrics.log" per_index_thruput 
| eval GB=kb/(1024*1024) 
| bucket _time span=1d 
| convert ctime(_time) as timestamp 
| timechart span=1d sum(GB) by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works well, except the "_fishbucket" shows as one of the values charted.&lt;/P&gt;

&lt;P&gt;I would like to combine"_fishbucket" and a few other fields into the "OTHER" category, but the only methods I can think of appear to drop them completely from the report.&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2013 14:40:04 GMT</pubDate>
    <dc:creator>dglinder</dc:creator>
    <dc:date>2013-12-04T14:40:04Z</dc:date>
    <item>
      <title>Add specific fields into the timechart OTHER category.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-specific-fields-into-the-timechart-OTHER-category/m-p/166171#M47321</link>
      <description>&lt;P&gt;I'm generating a report of the daily usage of my users indexes over the past week using this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-7d@d latest=@d index="_internal" source="*metrics.log" per_index_thruput 
| eval GB=kb/(1024*1024) 
| bucket _time span=1d 
| convert ctime(_time) as timestamp 
| timechart span=1d sum(GB) by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works well, except the "_fishbucket" shows as one of the values charted.&lt;/P&gt;

&lt;P&gt;I would like to combine"_fishbucket" and a few other fields into the "OTHER" category, but the only methods I can think of appear to drop them completely from the report.&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 14:40:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-specific-fields-into-the-timechart-OTHER-category/m-p/166171#M47321</guid>
      <dc:creator>dglinder</dc:creator>
      <dc:date>2013-12-04T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add specific fields into the timechart OTHER category.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-specific-fields-into-the-timechart-OTHER-category/m-p/166172#M47322</link>
      <description>&lt;P&gt;For anyone who is interested, I worked around this by using &lt;EM&gt;eval&lt;/EM&gt; to change the series field to "OTHER" whenever one of the ignorable series were found:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval series=if(series == "VALUE_internal" OR series == "_internal", "OTHER", series)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This changes any place that the "series" value is either "VALUE_internal" or "_internal" and places it in the "OTHER" column.  If not, it sets it back to the original value of series.&lt;/P&gt;

&lt;P&gt;There's the code from before with the addition:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-7d@d latest=@d index="_internal" source="*metrics.log" per_index_thruput 
| eval series=if(series == "VALUE_internal" OR series == "_internal", "OTHER", series) 
| eval series=if(series == "_fishbucket", "OTHER", series) 
| eval GB=kb/(1024*1024) 
| bucket _time span=1d 
| convert ctime(_time) as timestamp 
| timechart span=1d sum(GB) by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(I could have combined the two "eval series=..." pieces but I left them separate for readability.)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-specific-fields-into-the-timechart-OTHER-category/m-p/166172#M47322</guid>
      <dc:creator>dglinder</dc:creator>
      <dc:date>2020-09-28T15:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add specific fields into the timechart OTHER category.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-specific-fields-into-the-timechart-OTHER-category/m-p/166173#M47323</link>
      <description>&lt;P&gt;amazing, this worked perfectly for me when my data set already had an "Other" field too i was able to also use the otherstr="" option to time chart to merge my Other series with OTHER&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-specific-fields-into-the-timechart-OTHER-category/m-p/166173#M47323</guid>
      <dc:creator>anthonysomerset</dc:creator>
      <dc:date>2017-03-27T11:35:42Z</dc:date>
    </item>
  </channel>
</rss>

