<?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 How to replace label &amp;quot;_time&amp;quot; with &amp;quot;time&amp;quot; coming in timecharts ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70549#M17654</link>
    <description>&lt;P&gt;I have used timecharts in splunk app. But, in all the time-charts, When  mouseover the time-chart, the info it is showing in the black box comes with "_time" label for time. I want to know how to replace the _time with time label. &lt;IMG src="http://splunk-base.splunk.com//storage/snapshot_2.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;enter code here
&amp;lt;view template="dashboard.html" stylesheet="dashboard.css"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;LABEL&gt;Overall Summary&lt;/LABEL&gt;&lt;BR /&gt;
  &lt;MODULE name="AccountBar" layoutpanel="appHeader"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="AppBar" layoutpanel="navigationHeader"&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="Message" layoutpanel="messaging"&gt;&lt;BR /&gt;
     &lt;OBJECT&gt;&lt;PARAM name="filter" /&gt;*&lt;BR /&gt;
     &lt;PARAM name="clearOnJobDispatch" /&gt;False&lt;BR /&gt;
     &lt;PARAM name="maxSize" /&gt;1&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TitleBar" layoutpanel="viewHeader"&gt;&lt;BR /&gt;
     &lt;OBJECT&gt;&lt;PARAM name="actionsMenuFilter" /&gt;dashboard&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="SearchSelectLister" layoutpanel="mainSearchControls" autorun="True"&gt;&lt;BR /&gt;
        &lt;OBJECT&gt;&lt;PARAM name="searchWhenChanged" /&gt;True&lt;BR /&gt;
        &lt;PARAM name="settingToCreate" /&gt;uname_setting&lt;BR /&gt;
        &lt;PARAM name="label" /&gt;Unit Name :&lt;BR /&gt;
        &lt;PARAM name="savedSearch" /&gt;test search&lt;BR /&gt;
        &lt;PARAM name="searchFieldsToDisplay" /&gt;&lt;BR /&gt;
                &lt;LIST&gt;&lt;BR /&gt;
                        &lt;PARAM name="label" /&gt;unit_name&lt;BR /&gt;
                        &lt;PARAM name="value" /&gt;unit_name&lt;BR /&gt;
                &lt;/LIST&gt;&lt;BR /&gt;
        &lt;BR /&gt;
        &lt;MODULE name="ConvertToIntention"&gt;&lt;BR /&gt;
                &lt;PARAM name="settingToConvert" /&gt;uname_setting&lt;BR /&gt;
                &lt;PARAM name="intention" /&gt;&lt;BR /&gt;
                        &lt;PARAM name="name" /&gt;stringreplace&lt;BR /&gt;
                        &lt;PARAM name="arg" /&gt;&lt;BR /&gt;
                                &lt;PARAM name="unit_name" /&gt;&lt;BR /&gt;
                                        &lt;PARAM name="value" /&gt;$target$&lt;BR /&gt;
                                &lt;BR /&gt;
                        &lt;BR /&gt;
                &lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TimeRangePicker" layoutpanel="mainSearchControls" autorun="True"&gt;&lt;BR /&gt;
        &lt;OBJECT&gt;&lt;PARAM name="selected" /&gt;Last 60 minutes&lt;BR /&gt;
        &lt;PARAM name="searchWhenChanged" /&gt;True&lt;BR /&gt;
    &lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1" autorun="True"&gt;&lt;BR /&gt;
                &lt;PARAM name="search" /&gt;sourcetype="access" |&lt;CODE&gt;TR_unitname&lt;/CODE&gt;|where unit_name = "$unit_name$"| eval bandwidth=round(bytes_sent/1024,2)| timechart sum(bandwidth) | rename sum(bandwidth) AS "Bandwidth Consumed (in KB)"&lt;BR /&gt;
                &lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
                &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
                        &lt;PARAM name="chartTitle" /&gt;Traffic Over Time&lt;BR /&gt;
                        &lt;PARAM name="chart" /&gt;line&lt;BR /&gt;
                        &lt;PARAM name="chart.nullValueMode" /&gt;zero&lt;BR /&gt;
                        &lt;PARAM name="primaryAxisTitle.text" /&gt;Time&lt;BR /&gt;
                        &lt;PARAM name="secondaryAxisTitle.text" /&gt;Bandwidth(in KB)&lt;BR /&gt;
                        &lt;PARAM name="legend.placement" /&gt;bottom&lt;BR /&gt;
                        &lt;MODULE name="FlashChart"&gt;&lt;BR /&gt;
                                &lt;PARAM name="width" /&gt;100%&lt;BR /&gt;
                                &lt;PARAM name="height" /&gt;360px&lt;BR /&gt;
                                &lt;MODULE name="ConvertToDrilldownSearch"&gt;&lt;BR /&gt;
                                        &lt;MODULE name="ViewRedirector"&gt;&lt;BR /&gt;
                                                &lt;PARAM name="viewTarget" /&gt;flashtimeline&lt;BR /&gt;
                                                &lt;PARAM name="popup" /&gt;true&lt;BR /&gt;
                                        &lt;/MODULE&gt;&lt;BR /&gt;
                                &lt;/MODULE&gt;&lt;BR /&gt;
                        &lt;/MODULE&gt;&lt;BR /&gt;
                &lt;/MODULE&gt;&lt;BR /&gt;
        &lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="HiddenSearch" layoutPanel="panel_row2_col2" autoRun="True"&amp;gt;
            &amp;lt;param name="search"&amp;gt;sourcetype="firewall" Attack_Description!="NULL" |`WF_unitname`| where unit_name = "$unit_name$" | timechart count by Attack_Description&amp;lt;/param&amp;gt;
            &amp;lt;module name="JobProgressIndicator"/&amp;gt;
            &amp;lt;module name="HiddenChartFormatter"&amp;gt;
                    &amp;lt;param name="chartTitle"&amp;gt;Attacks Over Time&amp;lt;/param&amp;gt;
                    &amp;lt;param name="chart"&amp;gt;column&amp;lt;/param&amp;gt;
                    &amp;lt;param name="chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;
                    &amp;lt;param name="primaryAxisTitle.text"&amp;gt;Time&amp;lt;/param&amp;gt;
                    &amp;lt;param name="secondaryAxisTitle.text"&amp;gt;Count of Attacks&amp;lt;/param&amp;gt;
                    &amp;lt;param name="legend.placement"&amp;gt;bottom&amp;lt;/param&amp;gt;
                    &amp;lt;module name="FlashChart"&amp;gt;
                            &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                            &amp;lt;param name="height"&amp;gt;360px&amp;lt;/param&amp;gt;
                            &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;
                                    &amp;lt;module name="ViewRedirector"&amp;gt;
                                            &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
                                            &amp;lt;param name="popup"&amp;gt;true&amp;lt;/param&amp;gt;
                                    &amp;lt;/module&amp;gt;
                            &amp;lt;/module&amp;gt;
                    &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;I don't know how this _time is coming. I want to replace this _time with time.&lt;/P&gt;

&lt;P&gt;Thanks !&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:00:09 GMT</pubDate>
    <dc:creator>ranjyotiprakash</dc:creator>
    <dc:date>2020-09-28T13:00:09Z</dc:date>
    <item>
      <title>How to replace label "_time" with "time" coming in timecharts ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70549#M17654</link>
      <description>&lt;P&gt;I have used timecharts in splunk app. But, in all the time-charts, When  mouseover the time-chart, the info it is showing in the black box comes with "_time" label for time. I want to know how to replace the _time with time label. &lt;IMG src="http://splunk-base.splunk.com//storage/snapshot_2.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;enter code here
&amp;lt;view template="dashboard.html" stylesheet="dashboard.css"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;LABEL&gt;Overall Summary&lt;/LABEL&gt;&lt;BR /&gt;
  &lt;MODULE name="AccountBar" layoutpanel="appHeader"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="AppBar" layoutpanel="navigationHeader"&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="Message" layoutpanel="messaging"&gt;&lt;BR /&gt;
     &lt;OBJECT&gt;&lt;PARAM name="filter" /&gt;*&lt;BR /&gt;
     &lt;PARAM name="clearOnJobDispatch" /&gt;False&lt;BR /&gt;
     &lt;PARAM name="maxSize" /&gt;1&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TitleBar" layoutpanel="viewHeader"&gt;&lt;BR /&gt;
     &lt;OBJECT&gt;&lt;PARAM name="actionsMenuFilter" /&gt;dashboard&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="SearchSelectLister" layoutpanel="mainSearchControls" autorun="True"&gt;&lt;BR /&gt;
        &lt;OBJECT&gt;&lt;PARAM name="searchWhenChanged" /&gt;True&lt;BR /&gt;
        &lt;PARAM name="settingToCreate" /&gt;uname_setting&lt;BR /&gt;
        &lt;PARAM name="label" /&gt;Unit Name :&lt;BR /&gt;
        &lt;PARAM name="savedSearch" /&gt;test search&lt;BR /&gt;
        &lt;PARAM name="searchFieldsToDisplay" /&gt;&lt;BR /&gt;
                &lt;LIST&gt;&lt;BR /&gt;
                        &lt;PARAM name="label" /&gt;unit_name&lt;BR /&gt;
                        &lt;PARAM name="value" /&gt;unit_name&lt;BR /&gt;
                &lt;/LIST&gt;&lt;BR /&gt;
        &lt;BR /&gt;
        &lt;MODULE name="ConvertToIntention"&gt;&lt;BR /&gt;
                &lt;PARAM name="settingToConvert" /&gt;uname_setting&lt;BR /&gt;
                &lt;PARAM name="intention" /&gt;&lt;BR /&gt;
                        &lt;PARAM name="name" /&gt;stringreplace&lt;BR /&gt;
                        &lt;PARAM name="arg" /&gt;&lt;BR /&gt;
                                &lt;PARAM name="unit_name" /&gt;&lt;BR /&gt;
                                        &lt;PARAM name="value" /&gt;$target$&lt;BR /&gt;
                                &lt;BR /&gt;
                        &lt;BR /&gt;
                &lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TimeRangePicker" layoutpanel="mainSearchControls" autorun="True"&gt;&lt;BR /&gt;
        &lt;OBJECT&gt;&lt;PARAM name="selected" /&gt;Last 60 minutes&lt;BR /&gt;
        &lt;PARAM name="searchWhenChanged" /&gt;True&lt;BR /&gt;
    &lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1" autorun="True"&gt;&lt;BR /&gt;
                &lt;PARAM name="search" /&gt;sourcetype="access" |&lt;CODE&gt;TR_unitname&lt;/CODE&gt;|where unit_name = "$unit_name$"| eval bandwidth=round(bytes_sent/1024,2)| timechart sum(bandwidth) | rename sum(bandwidth) AS "Bandwidth Consumed (in KB)"&lt;BR /&gt;
                &lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
                &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
                        &lt;PARAM name="chartTitle" /&gt;Traffic Over Time&lt;BR /&gt;
                        &lt;PARAM name="chart" /&gt;line&lt;BR /&gt;
                        &lt;PARAM name="chart.nullValueMode" /&gt;zero&lt;BR /&gt;
                        &lt;PARAM name="primaryAxisTitle.text" /&gt;Time&lt;BR /&gt;
                        &lt;PARAM name="secondaryAxisTitle.text" /&gt;Bandwidth(in KB)&lt;BR /&gt;
                        &lt;PARAM name="legend.placement" /&gt;bottom&lt;BR /&gt;
                        &lt;MODULE name="FlashChart"&gt;&lt;BR /&gt;
                                &lt;PARAM name="width" /&gt;100%&lt;BR /&gt;
                                &lt;PARAM name="height" /&gt;360px&lt;BR /&gt;
                                &lt;MODULE name="ConvertToDrilldownSearch"&gt;&lt;BR /&gt;
                                        &lt;MODULE name="ViewRedirector"&gt;&lt;BR /&gt;
                                                &lt;PARAM name="viewTarget" /&gt;flashtimeline&lt;BR /&gt;
                                                &lt;PARAM name="popup" /&gt;true&lt;BR /&gt;
                                        &lt;/MODULE&gt;&lt;BR /&gt;
                                &lt;/MODULE&gt;&lt;BR /&gt;
                        &lt;/MODULE&gt;&lt;BR /&gt;
                &lt;/MODULE&gt;&lt;BR /&gt;
        &lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="HiddenSearch" layoutPanel="panel_row2_col2" autoRun="True"&amp;gt;
            &amp;lt;param name="search"&amp;gt;sourcetype="firewall" Attack_Description!="NULL" |`WF_unitname`| where unit_name = "$unit_name$" | timechart count by Attack_Description&amp;lt;/param&amp;gt;
            &amp;lt;module name="JobProgressIndicator"/&amp;gt;
            &amp;lt;module name="HiddenChartFormatter"&amp;gt;
                    &amp;lt;param name="chartTitle"&amp;gt;Attacks Over Time&amp;lt;/param&amp;gt;
                    &amp;lt;param name="chart"&amp;gt;column&amp;lt;/param&amp;gt;
                    &amp;lt;param name="chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;
                    &amp;lt;param name="primaryAxisTitle.text"&amp;gt;Time&amp;lt;/param&amp;gt;
                    &amp;lt;param name="secondaryAxisTitle.text"&amp;gt;Count of Attacks&amp;lt;/param&amp;gt;
                    &amp;lt;param name="legend.placement"&amp;gt;bottom&amp;lt;/param&amp;gt;
                    &amp;lt;module name="FlashChart"&amp;gt;
                            &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                            &amp;lt;param name="height"&amp;gt;360px&amp;lt;/param&amp;gt;
                            &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;
                                    &amp;lt;module name="ViewRedirector"&amp;gt;
                                            &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
                                            &amp;lt;param name="popup"&amp;gt;true&amp;lt;/param&amp;gt;
                                    &amp;lt;/module&amp;gt;
                            &amp;lt;/module&amp;gt;
                    &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;I don't know how this _time is coming. I want to replace this _time with time.&lt;/P&gt;

&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70549#M17654</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2020-09-28T13:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace label "_time" with "time" coming in timecharts ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70550#M17655</link>
      <description>&lt;P&gt;Just add a &lt;CODE&gt;|rename _time as time&lt;/CODE&gt; to the end of your search string&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70550#M17655</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-21T10:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace label "_time" with "time" coming in timecharts ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70551#M17656</link>
      <description>&lt;P&gt;Hi Drainy,&lt;/P&gt;

&lt;P&gt;Piping "rename _time As time" changes the time format and then it's coming as unix Time&lt;BR /&gt;
like 1355423400 in the chart.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70551#M17656</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2012-12-21T10:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace label "_time" with "time" coming in timecharts ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70552#M17657</link>
      <description>&lt;P&gt;add another | convert ctime(time) to the end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:26:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70552#M17657</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-21T10:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace label "_time" with "time" coming in timecharts ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70553#M17658</link>
      <description>&lt;P&gt;|convert ctime(_time) as time&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70553#M17658</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-12-21T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace label "_time" with "time" coming in timecharts ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70554#M17659</link>
      <description>&lt;P&gt;It's doing the change but changes the time and date format. But, I want to know why by default it is coming as _time on all the charts. But, when I create a report from the splunkweb UI it's coming as time ?&lt;BR /&gt;
Thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70554#M17659</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2012-12-21T10:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace label "_time" with "time" coming in timecharts ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70555#M17660</link>
      <description>&lt;P&gt;hi smolcj,&lt;BR /&gt;
the search you mentioned in the comment doesn't work at all.&lt;/P&gt;

&lt;P&gt;Thanks for reply&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 11:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-label-quot-time-quot-with-quot-time-quot-coming/m-p/70555#M17660</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2012-12-21T11:03:14Z</dc:date>
    </item>
  </channel>
</rss>

