<?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 to combine 2 fields into 1 for visualizing in graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159170#M44910</link>
    <description>&lt;P&gt;tks but don't think i need &lt;CODE&gt;coalesce&lt;/CODE&gt; as I am just trying to do a basic sum of 2 fields &lt;/P&gt;

&lt;P&gt;E.G. I want Sum_Traffic3 to be equla to 14295.97 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   Sum_Traffic1    Sum_Traffic2    Sum_Traffic3
2015-04-22  8002.73     6293.24      
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Really not sure why this does not work &lt;CODE&gt;eval seizureTraffic = (c84163237 + c84163338)&lt;/CODE&gt; or any variants of how this is written?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2015 00:19:19 GMT</pubDate>
    <dc:creator>HattrickNZ</dc:creator>
    <dc:date>2015-04-29T00:19:19Z</dc:date>
    <item>
      <title>how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159164#M44904</link>
      <description>&lt;P&gt;Can I combine 2 fields into the 1 using this method: &lt;/P&gt;

&lt;P&gt;Combining the 2 fields &lt;CODE&gt;c84163237&lt;/CODE&gt; and &lt;CODE&gt;c84163338&lt;/CODE&gt; into the 1 field &lt;CODE&gt;seizureTraffic&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| timechart  span=1h sum(c84163237) as seizureTraffic,  sum(c84163338) as seizureTraffic by LABEL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or do I have to do an eval command: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval field1=c84163237+c84163338
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't seem to get either working, can anyone advise? &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:13:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159164#M44904</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-04-28T03:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159165#M44905</link>
      <description>&lt;P&gt;Can you post some sample data and perhaps a mock-up of your desired result?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159165#M44905</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-04-28T03:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159166#M44906</link>
      <description>&lt;P&gt;You should be able to do something along the lines of...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|  timechart span=1h sum(eval(c84163237 + c84163338)) as seizureTraffic by LABEL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should work...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159166#M44906</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-28T03:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159167#M44907</link>
      <description>&lt;P&gt;You can test with similar fields..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal component=Metrics | timechart  sum(eval(kbps+eps)) as sum  by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2015 04:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159167#M44907</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-28T04:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159168#M44908</link>
      <description>&lt;P&gt;tks, tried this&lt;BR /&gt;
&lt;CODE&gt;timechart  span=1d sum(c84163237) as Sum_Traffic1 sum(c84163338) as Sum_Traffic2 sum(eval(c84163237 + c84163338)) as Sum_Traffic3&lt;/CODE&gt; but does not work, Sum_Traffic1 and 2 are showing values but Sum_Traffic3 is not. Any  ideas?&lt;/P&gt;

&lt;P&gt;I also tried adding &lt;CODE&gt;by LABEL&lt;/CODE&gt; at the end but that just removed the Sum_Traffic3 colum completely.&lt;/P&gt;

&lt;P&gt;I would rather get this method working but an alterenative would be to just sum the solumns of Sum_Traffic1 and 2 and then drop any fields, but I will only do this if I can't get the other way to work. tks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:42:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159168#M44908</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2020-09-28T19:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159169#M44909</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;P&gt;.....|eval seizureTraffic = coalesce(c84163237 , c84163338)|timechart  span =1 h sum( seizureTraffic ) by LABEL&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159169#M44909</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-28T23:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159170#M44910</link>
      <description>&lt;P&gt;tks but don't think i need &lt;CODE&gt;coalesce&lt;/CODE&gt; as I am just trying to do a basic sum of 2 fields &lt;/P&gt;

&lt;P&gt;E.G. I want Sum_Traffic3 to be equla to 14295.97 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   Sum_Traffic1    Sum_Traffic2    Sum_Traffic3
2015-04-22  8002.73     6293.24      
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Really not sure why this does not work &lt;CODE&gt;eval seizureTraffic = (c84163237 + c84163338)&lt;/CODE&gt; or any variants of how this is written?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 00:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159170#M44910</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-04-29T00:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159171#M44911</link>
      <description>&lt;P&gt;This works..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| localop | stats count | eval val1=1 | eval val2=2 | eval _time=now() | timechart  sum(eval(val1+val2)) as val3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A resulting val3 of "3". Should work for your dataset also. Note that timechart is dependent on the _time field being in the data. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 00:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159171#M44911</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-29T00:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159172#M44912</link>
      <description>&lt;P&gt;tks indeed it does, but for some very frustrating this does not, Sum_Traffic3 &amp;amp; 4 are showing blank &lt;BR /&gt;
&lt;CODE&gt;... | eval val1=1 | eval val2=2 | eval f1=c84163237 | eval f2=c84163338 | timechart sum(eval(c84163237 + c84163338)) as Sum_Traffic3, sum(eval(f1+f2)) as Sum_Traffic4 sum(eval(val1+val2)) as val3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I can see all fields that is (c84163237, c84163338,f1,f2,val1 and val2) in the events tab under Interesting Fields. However if  I select all fields I can only see val1 and val2 but not the other 4, maybe it has to do with the way the data is fed into splunk. will need to check this...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159172#M44912</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2020-09-28T19:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159173#M44913</link>
      <description>&lt;P&gt;Breaking apart what you have, your eval's of f1=c.... an f2=...   Those c* fields have to have numeric values for the stats to be applied to them properly ( you cannot summate a text value..) Additionally, if you run that stats, it does create the fields, but with no values. And that is what you are seeing...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| localop | stats count | eval c84163237=1 | eval _time=now() | eval c84163338=2 | eval f1=c84163237 | eval f2=c84163338 | timechart sum(eval(c84163237 + c84163338)) as Sum_Traffic3, sum(eval(f1+f2)) as Sum_Traffic4 sum(eval(val1+val2)) as val3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice there are no values for val1 and val2, so it returns a null field...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 01:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159173#M44913</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-29T01:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159174#M44914</link>
      <description>&lt;P&gt;tks...&lt;BR /&gt;
can i convert them to numeric?&lt;BR /&gt;
why can do a summate like this &lt;CODE&gt;stats sum(c84163237) as "seizureTraffic" by userLabel&lt;/CODE&gt; this would sum them all for yesterday? &lt;BR /&gt;
Why is the problem when I want to sum the 2 c* fields together? &lt;BR /&gt;
Am a bit confused.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 22:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159174#M44914</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-04-29T22:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159175#M44915</link>
      <description>&lt;P&gt;it has something to do with my search before I do the timechart&lt;BR /&gt;
I have &lt;CODE&gt;...measInfoId=83888114 OR measInfoId=83888115 | timechart...&lt;/CODE&gt; but the thing is to view this field &lt;CODE&gt;c84163237&lt;/CODE&gt; I need to select  83888114 and to view this field c84163338 I need to select 83888115. &lt;/P&gt;

&lt;P&gt;But I still would have though the method work on this. &lt;/P&gt;

&lt;P&gt;So it seems the counter needs to be from the same &lt;CODE&gt;measInfoId&lt;/CODE&gt; for it to work&lt;/P&gt;

&lt;P&gt;E.G. this will work as c84163237 + c84163241 both fall under measInfoId=83888114&lt;BR /&gt;
&lt;CODE&gt;... measInfoId=83888114 OR measInfoId=83888115 duration=*  LABEL=RNC01SJH | eval test1=c84163237 + c84163241 | timechart span=h sum(c84163237) sum(c84163338) sum(eval(c84163237 + c84163241)) as Sum_Traffic3 sum(test1)&lt;/CODE&gt;&lt;BR /&gt;
More explanation:&lt;BR /&gt;
&lt;CODE&gt;eval test1=c84163237 + c84163241&lt;/CODE&gt; - this works &lt;BR /&gt;
&lt;CODE&gt;sum(eval(c84163237 + c84163241)) as Sum_Traffic3&lt;/CODE&gt; - this works&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 22:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159175#M44915</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-04-29T22:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159176#M44916</link>
      <description>&lt;P&gt;Hi HattrickNZ &lt;BR /&gt;
This search code will help you , just run it &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|eval sumTraffic=c84163237+ c84163338| timechart  span=1h sum(c84163237) as sumTraffic1 ,  sum(c84163338) as sumTraffic2 ,sum(sumTraffic) as sumTraffic3 by LABEL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your result you will have 4 fields : _time , sumTraffic1 , sumTraffic2 ,sumTraffic3&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 23:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159176#M44916</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-04-29T23:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159177#M44917</link>
      <description>&lt;P&gt;Sorry but that does not work(the sumTraffic3 column does not appear)  and i have many LABELs so there is in fact many columns&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 23:32:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159177#M44917</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-04-29T23:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159178#M44918</link>
      <description>&lt;P&gt;HattrickNZ&lt;BR /&gt;&lt;BR /&gt;
Look at my example search&lt;BR /&gt;
sourcetype=access_*|eval sr=bytes+other| timechart  span=1h sum(bytes) as sb , sum(other) as so , sum(sr) as s by LABEL&lt;/P&gt;

&lt;P&gt;and the result&lt;/P&gt;

&lt;P&gt;&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/327iFB0A795AFEA42532/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 00:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159178#M44918</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-04-30T00:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159179#M44919</link>
      <description>&lt;P&gt;Going back to the start I have found a somewhat alternative solution taht I touched on earlier:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| timechart span=h sum(c84163237) as sT_IC sum(c84163338) as sT_OG by LABEL | addtotals fieldname=NE1 "*NE1" | addtotals fieldname=NE2 "*NE2" |&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;explanation:&lt;BR /&gt;
"*NE1" - search for any columns with this name and add them together and store them in a new column NE1&lt;BR /&gt;
NE1 - this is the name of the new column you created&lt;/P&gt;

&lt;P&gt;This will leave me with alot of columns taht I want and alot that I do not want in the stats tab view.  Now I just need to work out how to drop the first N columns.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 00:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159179#M44919</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-04-30T00:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159180#M44920</link>
      <description>&lt;P&gt;I don't know exactly how are your data&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 00:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159180#M44920</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-04-30T00:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159181#M44921</link>
      <description>&lt;P&gt;tks chimell, its not something I fully understand myself yet but here is an explanation I have made from above, it is of any help to you, or at least it is hopefully clear: &lt;/P&gt;

&lt;P&gt;it has something to do with my search before I do the timechart&lt;BR /&gt;
I have &lt;CODE&gt;...measInfoId=83888114 OR measInfoId=83888115 | timechart...&lt;/CODE&gt; but the thing is to view this field &lt;CODE&gt;c84163237&lt;/CODE&gt; I need to select  83888114 and to view this field c84163338 I need to select 83888115. &lt;/P&gt;

&lt;P&gt;But I still would have though the method work on this. &lt;/P&gt;

&lt;P&gt;So it seems the counter needs to be from the same &lt;CODE&gt;measInfoId&lt;/CODE&gt; for it to work&lt;/P&gt;

&lt;P&gt;E.G. this will work as c84163237 + c84163241 both fall under measInfoId=83888114&lt;BR /&gt;
&lt;CODE&gt;... measInfoId=83888114 OR measInfoId=83888115 duration=*  LABEL=RNC01SJH | eval test1=c84163237 + c84163241 | timechart span=h sum(c84163237) sum(c84163338) sum(eval(c84163237 + c84163241)) as Sum_Traffic3 sum(test1)&lt;/CODE&gt;&lt;BR /&gt;
More explanation:&lt;BR /&gt;
&lt;CODE&gt;eval test1=c84163237 + c84163241&lt;/CODE&gt; - this works &lt;BR /&gt;
&lt;CODE&gt;sum(eval(c84163237 + c84163241)) as Sum_Traffic3&lt;/CODE&gt; - this works&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 01:48:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159181#M44921</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-04-30T01:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159182#M44922</link>
      <description>&lt;P&gt;I believe what you are running into is the fact that some of these fields do not exist, or are null. You can try piping this in before the stats, the idea would be to fill the null values with numerical values of '0'...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..... | eval c84163237=if(isnull(c84163237),0,c84163237) |eval c84163338=if(isnull(c84163338),0,c84163338) | stats ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should ensure all fields are present with numeric values, and stats should work correctly. &lt;/P&gt;

&lt;P&gt;Can you post your data set?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 01:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159182#M44922</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-30T01:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 fields into 1 for visualizing in graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159183#M44923</link>
      <description>&lt;P&gt;using this seems to make this work &lt;CODE&gt;sum(eval(c84163237 + c84163241)) as Sum_Traffic3&lt;/CODE&gt; but still not fully sure why. As the values are genereally 0 or greater by doing &lt;CODE&gt;.. | stats values(c84163237) values(c84163241)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Sorry, I cannot share my data set.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 23:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-combine-2-fields-into-1-for-visualizing-in-graph/m-p/159183#M44923</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-05-04T23:20:34Z</dc:date>
    </item>
  </channel>
</rss>

