<?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: Heatmap - Tool, Query, and visualization options. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428598#M52494</link>
    <description>&lt;P&gt;@aljohnson &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 05:16:28 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-06-05T05:16:28Z</dc:date>
    <item>
      <title>Heatmap - Tool, Query, and visualization options.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428597#M52493</link>
      <description>&lt;P&gt;I currently have a sample data table as below.  I want to put it into a heatmap, where &lt;CODE&gt;Date, TimeWindow, Sum&lt;/CODE&gt; as X, Y, and Z in the heatmap. &lt;BR /&gt;
&lt;CODE&gt;Date            TimeWindow       Sum&lt;BR /&gt;
3/1/2018    20:20:00—20:40:00 5&lt;BR /&gt;
3/3/2018    14:40:00—15:00:00 3&lt;BR /&gt;
3/9/2018    23:20:00—23:40:00 0&lt;BR /&gt;
3/23/2018   00:40:00—01:00:00 1&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I downloaded this heatmap: &lt;A href="https://splunkbase.splunk.com/app/3159/"&gt;https://splunkbase.splunk.com/app/3159/&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Query I used: &lt;CODE&gt;source blabla | table Date TimeWindow Sum&lt;/CODE&gt;&lt;BR /&gt;
The heatmap I got was weird. &lt;BR /&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/5087i79F3DF8AE6070323/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I looked at its sample data from "| inputlookup marx_counts.csv", the input data structure looks completely diffirent. &lt;/P&gt;

&lt;P&gt;I think my query is wrong, but I couldn't find examples to refer to. Am I using the right Heatmap app, or would anyone suggest me changing to another Heatwave, or change my input data models...? &lt;/P&gt;

&lt;P&gt;Thank you. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 01:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428597#M52493</guid>
      <dc:creator>h52huang</dc:creator>
      <dc:date>2018-06-05T01:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap - Tool, Query, and visualization options.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428598#M52494</link>
      <description>&lt;P&gt;@aljohnson &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 05:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428598#M52494</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-05T05:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap - Tool, Query, and visualization options.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428599#M52495</link>
      <description>&lt;P&gt;Hello @h52huang,&lt;/P&gt;

&lt;P&gt;Indeed, you need to do a bit more formatting before the heatmap will work. It sounds like you have 3 columns you want to use. Two of those columns need to be treated as categorical fields (in the sense that they are the row separations and the column separations). The third column, should be numeric of course.&lt;/P&gt;

&lt;P&gt;Thankfully, you simply need to use the timechart command to get it into the right format.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal
| timechart span=10m count by component
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Gives me a visualization like:&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/5086i126CB1CFD453AF53/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;So in your situation, like you only need something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... base search
| chart sum(something) by Date TimeWindow
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... base search
| chart first(sum) by Date TimeWindow 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jun 2018 01:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428599#M52495</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2018-06-06T01:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap - Tool, Query, and visualization options.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428600#M52496</link>
      <description>&lt;P&gt;Hi @aljohnson &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks a lot for helping. I have a few more questions please. &lt;/P&gt;

&lt;P&gt;I tried with both &lt;BR /&gt;
&lt;CODE&gt;... base search&lt;BR /&gt;
 | chart sum(something) by Date TimeWindow&lt;/CODE&gt;&lt;BR /&gt;
and&lt;BR /&gt;
&lt;CODE&gt;... base search&lt;BR /&gt;
 | chart sum(something) by TimeWindow, Date&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The results are totally different for axis values. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;by TimeWindow Date&lt;/CODE&gt; gave me:&lt;BR /&gt;
x: 01:00:00-01:20:00&lt;BR /&gt;
y: April 2006 (The value is weird, I suspect it was calculated and converted from my &lt;CODE&gt;2018-05-07&lt;/CODE&gt;&lt;BR /&gt;
z: 12&lt;/P&gt;

&lt;P&gt;while &lt;CODE&gt;by Date TimeWindow&lt;/CODE&gt; gave me:&lt;BR /&gt;
x: May 7 12h&lt;BR /&gt;
y: 01:00:00-01:20:00&lt;BR /&gt;
z: 12&lt;/P&gt;

&lt;P&gt;I checked how the values look like in a table, they are completely ok. but I don't know why Y axis date string is automatically calculated and then into a date.&lt;BR /&gt;
Is there a way for me to:&lt;BR /&gt;
- Remove &lt;CODE&gt;12h&lt;/CODE&gt; in the Date field, and reserve Y axis field please?&lt;/P&gt;

&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 00:58:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428600#M52496</guid>
      <dc:creator>h52huang</dc:creator>
      <dc:date>2018-06-09T00:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap - Tool, Query, and visualization options.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428601#M52497</link>
      <description>&lt;P&gt;Hi @h52huang&lt;/P&gt;

&lt;P&gt;Yes, you are correct, that the ordering of the fields with the chart command matters, and will produce different output. You can read more about the chart command here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Chart"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Chart&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Sound like Splunk might be automatically formatting a detected date? You can try adding some string to the beginning of the date to ensure that it isn't formatted, e.g.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval Date = "Date: ".Date&lt;/CODE&gt; or you can rename it to a different field possibly?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 19:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Heatmap-Tool-Query-and-visualization-options/m-p/428601#M52497</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2018-06-11T19:35:32Z</dc:date>
    </item>
  </channel>
</rss>

