<?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 assigning values from Spanned table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592515#M206227</link>
    <description>&lt;P&gt;Try this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xxx earliest=-2w@w0 latest=@w6@d+24h
| timechart span=7d count(response_time)
| streamstats count as week_num
| eval Week="Week".week_num | fields - week_num, _time, _span
| transpose header_field="Week"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transpose command should be able to do what you are looking for.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 17:58:17 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-04-05T17:58:17Z</dc:date>
    <item>
      <title>Why is TimeChart assigning values from spanned table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592005#M206077</link>
      <description>&lt;P class="lia-align-left"&gt;Hello All,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;I have a really simple search, while it works, I'd like to do some operations on that data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=xxxx

earliest=-2w@w0 latest=@w6@d+24h

| timechart span=7d count(response_time)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Output is&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;2022-03-13&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3,xxx,xxx&lt;/P&gt;
&lt;P class="lia-align-left"&gt;2022-03-20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3,xxx.xxx&lt;/P&gt;
&lt;P class="lia-align-left"&gt;The deal is, I'd really like to have those seperate outputs as variables like Week1 and Week2. This way I could do some operations to see my sites volume week to week change so I can normalize error data. Hopefully this makes sense.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592005#M206077</guid>
      <dc:creator>michaelhaedt</dc:creator>
      <dc:date>2022-04-05T16:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: TimeChart assigning values from Spanned table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592037#M206090</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xxx earliest=-2w@w0 latest=@w6@d+24h
| timechart span=7d count(response_time)
| streamstats count as week_num
| eval Week="Week ".week_num | fields - week_num, _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly accept the answer if it gives resolution.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 06:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592037#M206090</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-02T06:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: TimeChart assigning values from Spanned table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592462#M206207</link>
      <description>&lt;P&gt;So that gives me a very similar output to what I have, which I need to have variables assigned the count(response_time) of each of the weeks. I like how this solution put it into one search and not an appended search though, very clever, I'd love to know how it works.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 14:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592462#M206207</guid>
      <dc:creator>michaelhaedt</dc:creator>
      <dc:date>2022-04-05T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: TimeChart assigning values from Spanned table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592483#M206215</link>
      <description>&lt;P&gt;With &lt;STRONG&gt;streamstats&lt;/STRONG&gt; you can assign the numbers to your results and then with &lt;STRONG&gt;eval&lt;/STRONG&gt; I'm just appending that number to "Week ".&lt;/P&gt;&lt;P&gt;This works because proper ordering and missing values of _time series will already be handled by &lt;STRONG&gt;timechart&lt;/STRONG&gt; command.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592483#M206215</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-05T15:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: TimeChart assigning values from Spanned table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592490#M206216</link>
      <description>&lt;P&gt;Thanks for the explanation! I still need a way to assign the counts of Week 1 and 2 to&amp;nbsp; variables so I can start to manipulate the data.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592490#M206216</guid>
      <dc:creator>michaelhaedt</dc:creator>
      <dc:date>2022-04-05T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: TimeChart assigning values from Spanned table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592497#M206219</link>
      <description>Can you please explain by posting your current output and explain what change you are looking for?</description>
      <pubDate>Tue, 05 Apr 2022 16:51:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592497#M206219</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-05T16:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: TimeChart assigning values from Spanned table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592505#M206224</link>
      <description>&lt;P&gt;Below is my data: I need to be able to assign the data to a variable like Week1Data = 1160516 and Week2Data = 3488119&lt;/P&gt;&lt;P&gt;This seems really easy, but I don't know how to logically address the data in the table to do an Eval&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1160516&lt;/TD&gt;&lt;TD&gt;Week 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3488119&lt;/TD&gt;&lt;TD&gt;Week 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 17:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592505#M206224</guid>
      <dc:creator>michaelhaedt</dc:creator>
      <dc:date>2022-04-05T17:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: TimeChart assigning values from Spanned table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592515#M206227</link>
      <description>&lt;P&gt;Try this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xxx earliest=-2w@w0 latest=@w6@d+24h
| timechart span=7d count(response_time)
| streamstats count as week_num
| eval Week="Week".week_num | fields - week_num, _time, _span
| transpose header_field="Week"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transpose command should be able to do what you are looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 17:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-TimeChart-assigning-values-from-spanned-table/m-p/592515#M206227</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-05T17:58:17Z</dc:date>
    </item>
  </channel>
</rss>

