<?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 Using span option with timechart causes incorrect column names. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500239#M139298</link>
    <description>&lt;P&gt;Splunk Ver : I tested in 7.3.0 and 6.6.12.&lt;BR /&gt;
Timezone : I don't know if it’s relevant to this problem, but it is JST&lt;/P&gt;

&lt;P&gt;If I run following search, column name will be "99".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=10 
| eval field=99
| timechart count by field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But If I using &lt;CODE&gt;span&lt;/CODE&gt; option like below, column name changes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Pattern 1)
    | makeresults count=10 
    | eval field=99
    | timechart count by field span=1h
Result 1)
    column name changes to "0".

Pattern 2)
    | makeresults count=10 
    | eval field=99
    | timechart count by field span=1m
Result 2)
    column name changes to "60".

Pattern 3)
    | makeresults count=10 
    | eval field=99
    | timechart count by field span=1d
Result 3)
    column name changes to "-32400"!
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This time, I used &lt;CODE&gt;makeresults&lt;/CODE&gt; as a sample. &lt;BR /&gt;
But, if I want to use &lt;CODE&gt;timechart&lt;/CODE&gt; by some number field like destination port or ID_number in actual operation, it would be a problem if the displayed column names are different.&lt;/P&gt;

&lt;P&gt;Is this issue?&lt;BR /&gt;
Or specification? If so, is there a way to avoid?&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/7796iCEBFE417191C1414/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 07:01:01 GMT</pubDate>
    <dc:creator>yutaka1005</dc:creator>
    <dc:date>2019-10-10T07:01:01Z</dc:date>
    <item>
      <title>Using span option with timechart causes incorrect column names.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500239#M139298</link>
      <description>&lt;P&gt;Splunk Ver : I tested in 7.3.0 and 6.6.12.&lt;BR /&gt;
Timezone : I don't know if it’s relevant to this problem, but it is JST&lt;/P&gt;

&lt;P&gt;If I run following search, column name will be "99".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=10 
| eval field=99
| timechart count by field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But If I using &lt;CODE&gt;span&lt;/CODE&gt; option like below, column name changes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Pattern 1)
    | makeresults count=10 
    | eval field=99
    | timechart count by field span=1h
Result 1)
    column name changes to "0".

Pattern 2)
    | makeresults count=10 
    | eval field=99
    | timechart count by field span=1m
Result 2)
    column name changes to "60".

Pattern 3)
    | makeresults count=10 
    | eval field=99
    | timechart count by field span=1d
Result 3)
    column name changes to "-32400"!
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This time, I used &lt;CODE&gt;makeresults&lt;/CODE&gt; as a sample. &lt;BR /&gt;
But, if I want to use &lt;CODE&gt;timechart&lt;/CODE&gt; by some number field like destination port or ID_number in actual operation, it would be a problem if the displayed column names are different.&lt;/P&gt;

&lt;P&gt;Is this issue?&lt;BR /&gt;
Or specification? If so, is there a way to avoid?&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/7796iCEBFE417191C1414/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500239#M139298</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2019-10-10T07:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using span option with timechart causes incorrect column names.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500240#M139299</link>
      <description>&lt;P&gt;Hi yutaka1005,&lt;BR /&gt;
span hasn't any impact on column names, can you share your search, probably the cause of this behaviour is in the search.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:15:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500240#M139299</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-10T07:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using span option with timechart causes incorrect column names.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500241#M139300</link>
      <description>&lt;P&gt;Sorry... moving span option to after &lt;CODE&gt;timechart&lt;/CODE&gt; command like below, it worked correctly...&lt;/P&gt;

&lt;P&gt;Before)&lt;BR /&gt;
&lt;CODE&gt;timechart count by field span=1h&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;After)&lt;BR /&gt;
&lt;CODE&gt;timechart span=1h count by field&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I was thinking that I can put &lt;CODE&gt;span&lt;/CODE&gt; option anywhere.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500241#M139300</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2019-10-10T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using span option with timechart causes incorrect column names.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500242#M139301</link>
      <description>&lt;P&gt;Sorry, it was solved by myself.&lt;/P&gt;

&lt;P&gt;Thank you for comment!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-span-option-with-timechart-causes-incorrect-column-names/m-p/500242#M139301</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2019-10-10T07:55:53Z</dc:date>
    </item>
  </channel>
</rss>

