<?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 customize the x-axis on the timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415925#M119734</link>
    <description>&lt;P&gt;Thought so. Thanks for pointing me in the right direction!&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2019 11:44:16 GMT</pubDate>
    <dc:creator>kkos94</dc:creator>
    <dc:date>2019-04-19T11:44:16Z</dc:date>
    <item>
      <title>How to customize the x-axis on the timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415921#M119730</link>
      <description>&lt;P&gt;I want my timechart to display other data on the x-axis aside from the time itself.&lt;/P&gt;

&lt;P&gt;To be more precise, I would like the chart to represent data like this:&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/6904i5FD73EBBC840128B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
This is probably impossible to achieve without adding a custom CSS file, but maybe I can make some transformation in my search so I can read "Third One" when I hover over the 3:14 PM mark, or "Second Event Here" when I hover on the 1:59 PM mark.&lt;/P&gt;

&lt;P&gt;Any ideas about how achievable this is?&lt;/P&gt;

&lt;P&gt;Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415921#M119730</guid>
      <dc:creator>kkos94</dc:creator>
      <dc:date>2019-04-15T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the x-axis on the timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415922#M119731</link>
      <description>&lt;P&gt;Sounds like you might be trying to do chart annotations?&lt;/P&gt;

&lt;P&gt;Here is an example of how this works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Events with WARN/ERROR/INFO event annotations and color red for error, orange for warn, green for info&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search type="annotation"&amp;gt;
          &amp;lt;query&amp;gt;
                  index=_internal (log_level="WARN" OR log_level="ERROR" OR log_level="INFO") | eval annotation_label = message | eval annotation_category = log_level | table _time annotation_label annotation_category
              &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal | timechart count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;!-- Base search that drives the visualization  --&amp;gt;
        &amp;lt;!-- Secondary search that drives the annotations --&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;!-- Customize the event annotation colors based on category name --&amp;gt;
        &amp;lt;option name="charting.annotation.categoryColors"&amp;gt;{"ERROR":"0xff3300","WARN":"0xff9900","INFO":"0x36b536"}&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/ChartEventAnnotations"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/ChartEventAnnotations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415922#M119731</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-04-15T11:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the x-axis on the timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415923#M119732</link>
      <description>&lt;P&gt;That does indeed look like what I'm thinking of doing.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Is there a way to display these annotations under the x-axis? Kind of like a second axis overlapping the time axis?&lt;/P&gt;

&lt;P&gt;Not sure if the way I worded it makes sense.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415923#M119732</guid>
      <dc:creator>kkos94</dc:creator>
      <dc:date>2019-04-15T11:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the x-axis on the timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415924#M119733</link>
      <description>&lt;P&gt;No I just the flags that overlay as per those screenshots. &lt;/P&gt;

&lt;P&gt;If you really need annotations under the x-axis you would need to create a custom visualisation that can render like that.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 20:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415924#M119733</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-04-15T20:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the x-axis on the timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415925#M119734</link>
      <description>&lt;P&gt;Thought so. Thanks for pointing me in the right direction!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 11:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-the-x-axis-on-the-timechart/m-p/415925#M119734</guid>
      <dc:creator>kkos94</dc:creator>
      <dc:date>2019-04-19T11:44:16Z</dc:date>
    </item>
  </channel>
</rss>

