<?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: merge timechart column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145310#M40478</link>
    <description>&lt;P&gt;Yes!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval source=if(source=="cat" OR source=="dog","animal",source)
| timechart count by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 17 Nov 2013 07:00:10 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2013-11-17T07:00:10Z</dc:date>
    <item>
      <title>merge timechart column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145309#M40477</link>
      <description>&lt;P&gt;Hi i am using timechart count by source. It gave me a table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time cat dog  car
23/3   2   2    3
24/5   5   4    3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is there anyway to merge cat and dog into a single column like animal?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time  animal  car
23/3      4     3
24/5      9     3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2013 06:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145309#M40477</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-11-17T06:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: merge timechart column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145310#M40478</link>
      <description>&lt;P&gt;Yes!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval source=if(source=="cat" OR source=="dog","animal",source)
| timechart count by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Nov 2013 07:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145310#M40478</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-11-17T07:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: merge timechart column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145311#M40479</link>
      <description>&lt;P&gt;Sure thing, you will have to evaluate a new field and use the chart command instead. If you want it by day you will need to add the bucket command. Something of this effect:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | eval animal=(cat+dog) | bucket span=1d _time | chart sum(animal) as animal, sum(car) as car by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Nov 2013 07:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145311#M40479</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-17T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: merge timechart column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145312#M40480</link>
      <description>&lt;P&gt;thanks it works great&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2013 09:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/merge-timechart-column/m-p/145312#M40480</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-11-17T09:32:55Z</dc:date>
    </item>
  </channel>
</rss>

