<?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: Timechart based on max count of 3 fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-based-on-max-count-of-3-fields/m-p/576599#M200945</link>
    <description>&lt;P&gt;It is because you're calculating two separate statistics for each timepoints and in order to allow you to distinguish between them splunk calls them by the aggregation function you used.&lt;/P&gt;&lt;P&gt;You can add&lt;/P&gt;&lt;PRE&gt;| rename "count: *" as *&lt;/PRE&gt;&lt;P&gt;to remove the "count:" part from the column names.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 10:55:08 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-11-29T10:55:08Z</dc:date>
    <item>
      <title>Timechart based on max count of 3 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-based-on-max-count-of-3-fields/m-p/576595#M200943</link>
      <description>&lt;P&gt;I was given a base search to manipulate and create Timechart accordingly.&lt;/P&gt;&lt;PRE&gt;base search&lt;BR /&gt;| eval file_line = file.":".line&lt;BR /&gt;| eval errorList = message . ":" . file_line . ":" . level&lt;BR /&gt;| top 25 message,file_line,level by applicationBuild&lt;BR /&gt;| table applicationBuild level count file_line message&lt;/PRE&gt;&lt;P&gt;The result was formatted as such&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="84.875px"&gt;build2021&lt;/TD&gt;&lt;TD width="62.59375px"&gt;ERROR&lt;/TD&gt;&lt;TD width="60.3125px"&gt;8&lt;/TD&gt;&lt;TD width="254.875px"&gt;file1.java:111&lt;/TD&gt;&lt;TD width="328.359375px"&gt;ErrorMessage123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="84.875px"&gt;build2021&lt;/TD&gt;&lt;TD width="62.59375px"&gt;ERROR&lt;/TD&gt;&lt;TD width="60.3125px"&gt;4&lt;/TD&gt;&lt;TD width="254.875px"&gt;file2.java:123&lt;/TD&gt;&lt;TD width="328.359375px"&gt;ErrorMessage456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="84.875px"&gt;build2021&lt;/TD&gt;&lt;TD width="62.59375px"&gt;ERROR&lt;/TD&gt;&lt;TD width="60.3125px"&gt;3&lt;/TD&gt;&lt;TD width="254.875px"&gt;file3.java:456&lt;/TD&gt;&lt;TD width="328.359375px"&gt;ErrorMessage789&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to plot a Timechart from the above result. Output should be Top 25 Error message above against time.&lt;/P&gt;&lt;P&gt;I came out with&lt;/P&gt;&lt;PRE&gt;base search &lt;BR /&gt;| eval file_line = file.":".line&lt;BR /&gt;| eval errorList = message.";".file_line.";".level&lt;BR /&gt;| where errorList!="null"&lt;BR /&gt;| timechart useother=f usenull=f count max(message,file_line,level,applicationBuild) by errorList limit=25&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The legend of the result will append "count: " in front of the errorList that I cannot remove.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Any idea how can I remove this from the legend?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;are there better ways to achieve the same result?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erica_1-1638182325631.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17034iD792D350A10C0605/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erica_1-1638182325631.png" alt="erica_1-1638182325631.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-based-on-max-count-of-3-fields/m-p/576595#M200943</guid>
      <dc:creator>erica</dc:creator>
      <dc:date>2021-11-29T10:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart based on max count of 3 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-based-on-max-count-of-3-fields/m-p/576599#M200945</link>
      <description>&lt;P&gt;It is because you're calculating two separate statistics for each timepoints and in order to allow you to distinguish between them splunk calls them by the aggregation function you used.&lt;/P&gt;&lt;P&gt;You can add&lt;/P&gt;&lt;PRE&gt;| rename "count: *" as *&lt;/PRE&gt;&lt;P&gt;to remove the "count:" part from the column names.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-based-on-max-count-of-3-fields/m-p/576599#M200945</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-29T10:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart based on max count of 3 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-based-on-max-count-of-3-fields/m-p/576605#M200947</link>
      <description>&lt;P&gt;Thank you! this solve my problem&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 11:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-based-on-max-count-of-3-fields/m-p/576605#M200947</guid>
      <dc:creator>erica</dc:creator>
      <dc:date>2021-11-29T11:20:25Z</dc:date>
    </item>
  </channel>
</rss>

