<?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 do I add two rows with different identifiers and chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541422#M153288</link>
    <description>&lt;P&gt;Please ignore my question. My sum was trying to sum up strings. This worked:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;my_search_query | eval dd = tonumber(aa) + tonumber(bb) | chart latest(dd)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 20:52:11 GMT</pubDate>
    <dc:creator>sriramv2006</dc:creator>
    <dc:date>2021-02-25T20:52:11Z</dc:date>
    <item>
      <title>How do I add two rows with different identifiers and chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541399#M153282</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Tag &amp;nbsp; &amp;nbsp;| &amp;nbsp; Value&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;aa &amp;nbsp; &amp;nbsp; | &amp;nbsp; 15.5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;bb &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;20&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cc &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;23&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I want to chart the value "dd = aa + bb" . Seems simple enough, but I haven't been able to find a solution through "sum" or "addtotals".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried the below also, but no luck.&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;my_search_query | eval dd = aa + bb | chart latest(dd)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 18:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541399#M153282</guid>
      <dc:creator>sriramv2006</dc:creator>
      <dc:date>2021-02-25T18:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add two rows with different identifiers and chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541407#M153284</link>
      <description>&lt;P&gt;&lt;SPAN&gt;eval dd = aa + bb will create a field on each event in your pipeline adding fields aa and bb from that event. Are all these "tag"s and "value"s in different events? Is there anything else in the event that correlates aa and bb?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541407#M153284</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-25T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add two rows with different identifiers and chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541414#M153285</link>
      <description>&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;P&gt;Every event will have aa and bb rows. My "tag"s and "value"s can be from multiple events.&lt;/P&gt;&lt;P&gt;When I do the following, the chart/table comes up empty for "dd"&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;my_search_query | eval dd = aa + bb | chart latest(dd)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Since I'm looking for the latest event, tried this also:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;my_search_query | eval dd = latest(aa) + latest(bb) | chart latest(dd)&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;But I get the following syntax error:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Error in 'eval' command: The 'latest' function is unsupported or undefined.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541414#M153285</guid>
      <dc:creator>sriramv2006</dc:creator>
      <dc:date>2021-02-25T20:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add two rows with different identifiers and chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541415#M153286</link>
      <description>&lt;P&gt;I am confused by your use of event and rows. Each event would normal take up one row in the events table. If aa and bb are different rows, then they are from different events as far as splunk is concerned. If these events are from the same event in application terms, e.g. the same application event generates multiple lines in a log which are ingested by splunk, as separate splunk events, is there a way from the event data to correlate these events so you know which aa belongs with which bb?&lt;/P&gt;&lt;P&gt;An example of your actual raw events as seen by splunk might be useful, although I recommend that you obfuscate any sensitive data.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541415#M153286</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-25T20:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add two rows with different identifiers and chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541422#M153288</link>
      <description>&lt;P&gt;Please ignore my question. My sum was trying to sum up strings. This worked:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;my_search_query | eval dd = tonumber(aa) + tonumber(bb) | chart latest(dd)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-add-two-rows-with-different-identifiers-and-chart/m-p/541422#M153288</guid>
      <dc:creator>sriramv2006</dc:creator>
      <dc:date>2021-02-25T20:52:11Z</dc:date>
    </item>
  </channel>
</rss>

