<?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 values not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81340#M20597</link>
    <description>&lt;P&gt;I see now what you guys were talking about with mvzip and mvexpand.  But I wouldn't bother with that - this data shouldn't be multiline so just reindex with SHOULD_LINEMERGE="False" and I think it'll show up.   I don't think xyseries can deal with multivalue fields and maybe it just quietly fails.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2013 19:26:09 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2013-07-02T19:26:09Z</dc:date>
    <item>
      <title>Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81322#M20579</link>
      <description>&lt;P&gt;I've been trying to chart some data and every way I try, it just doesn't work.&lt;/P&gt;

&lt;P&gt;I'm able to create a table of my data fine.  I use the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="ec2_web" "[EVENTS]" | rex field=_raw "\d:\s+(?&amp;lt;event&amp;gt;[\w+\s]+?)\s+(?&amp;lt;Status&amp;gt;\d)\s+(?&amp;lt;Avg&amp;gt;\d+.\d+)" max_match=100 | rex field=source "/(?&amp;lt;script&amp;gt;[^/]+)$" | search script="ec2_ireland_script4.txt" | table _time,script,event,Avg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A sample of how the data looks is attached.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/splunk.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;If I try to put this in a timechart, I get a blank chart when using values.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="ec2_web" "[EVENTS]" | rex field=_raw "\d:\s+(?&amp;lt;event&amp;gt;[\w+\s]+?)\s+(?&amp;lt;Status&amp;gt;\d)\s+(?&amp;lt;Avg&amp;gt;\d+.\d+)" max_match=100 | rex field=source "/(?&amp;lt;script&amp;gt;[^/]+)$" | search script="ec2_ireland_script4.txt" | timechart values(Avg) by event | fields - NULL OTHER
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do I have to convert these values to chart them correctly?  Why would values not work in this situation?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 17:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81322#M20579</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-01T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81323#M20580</link>
      <description>&lt;P&gt;Yes, timechart won't understand a list of values - it looks for one numerical value, not a list of them. (How would it chart them?)&lt;/P&gt;

&lt;P&gt;What do you want the chart to look like?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 18:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81323#M20580</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-01T18:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81324#M20581</link>
      <description>&lt;P&gt;well a bar graph of the values over time by event is what I'm aiming for.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 18:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81324#M20581</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-01T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81325#M20582</link>
      <description>&lt;P&gt;Could you try mvzip(event,Avg),Split to two different fields,mvexpand then create a table on _time,event,Avg? See if gives you any chart on splunk search app..&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 18:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81325#M20582</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-01T18:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81326#M20583</link>
      <description>&lt;P&gt;I'm reading up on the command now to try it out.  I'm not quite sure how this works.  Tried a few times and so far didn't get the results I expected.  It says The mvexpand command only works on one multivalued field.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 19:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81326#M20583</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-01T19:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81327#M20584</link>
      <description>&lt;P&gt;eval t=mvzip(event,AVG)|eval z=split(t,",")|eval event=mvindex(z,0)|eval avg=mvindex(z,1)|table _time,event,avg&lt;/P&gt;

&lt;P&gt;i am not sure where you need to apply mvexpand as i dont have the same records with me&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 19:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81327#M20584</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-01T19:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81328#M20585</link>
      <description>&lt;P&gt;Hmm...everything came up blank.  I'll see about tweaking it perhaps&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 20:36:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81328#M20585</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-01T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81329#M20586</link>
      <description>&lt;P&gt;Sorry - in my earlier answer I misunderstood your end goal. &lt;/P&gt;

&lt;P&gt;It sounds like you just want to graph the 'Avg' field, but since it's already an average you don't want to do any more aggregation - max, min or avg.  you want instead to just graph the values themselves.   &lt;/P&gt;

&lt;P&gt;To do this you can actually use the xyseries command. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="ec2_web" "[EVENTS]" | rex field=_raw "\d:\s+(?&amp;lt;event&amp;gt;[\w+\s]+?)\s+(?&amp;lt;Status&amp;gt;\d)\s+(?&amp;lt;Avg&amp;gt;\d+.\d+)" max_match=100 | rex field=source "/(?&amp;lt;script&amp;gt;[^/]+)$" | search script="ec2_ireland_script4.txt" | xyseries _time event Avg&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 21:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81329#M20586</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-01T21:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81330#M20587</link>
      <description>&lt;P&gt;It's strange but this didn't work either.  I'm wondering if it has something to do with how this data is presented.  I'm going to try a few more things.  Whatever help you have given is greatly appreciated though.  It's strange but when using xy series, nothing shows up.  It's just all blank.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 13:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81330#M20587</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-02T13:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81331#M20588</link>
      <description>&lt;P&gt;The numbers are displayed in milliseconds.  Perhaps I should try changing milliseconds to seconds?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 15:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81331#M20588</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-02T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81332#M20589</link>
      <description>&lt;P&gt;So you can see _time values in the table, and you can see values of the event field across the columns of the table, and there are Avg values populating the table,  but nothing shows up. &lt;/P&gt;

&lt;P&gt;What kind of chart type are you using?   When you create a report this way with no aggregation there are lots of null values in the data,  and when there are lots of null values, if you are using "line" chart, with "nullValueMode" left at it's default of "gaps" and "showMarkers" left at its default of "False",  then the chart will literally display nothing...  Change the above settings or the chart type.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 17:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81332#M20589</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-02T17:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81333#M20590</link>
      <description>&lt;P&gt;If I use &lt;BR /&gt;
sourcetype="ec2_web" "[EVENTS]" | rex field=_raw "\d:\s+(?&lt;EVENT&gt;[\w+\s]+?)\s+(?&lt;STATUS&gt;\d)\s+(?&lt;AVG&gt;\d+.\d+)" max_match=100 | rex field=source "/(?&lt;SCRIPT&gt;[^/]+)$&amp;amp;amp;amp;amp;amp;quot; | search script=&amp;amp;amp;amp;amp;amp;quot;ec2_ireland_script4.txt&amp;amp;amp;amp;amp;amp;quot; | table _time,script,event,Avg I get data in a table.  If I use sourcetype=&amp;amp;amp;amp;amp;amp;quot;ec2_web&amp;amp;amp;amp;amp;amp;quot; &amp;amp;amp;amp;amp;amp;quot;[EVENTS]&amp;amp;amp;amp;amp;amp;quot; | rex field=_raw &amp;amp;amp;amp;amp;amp;quot;\d:\s+(?&amp;amp;amp;amp;amp;lt;event&amp;amp;amp;amp;amp;gt;[\w+\s]+?)\s+(?&amp;amp;amp;amp;amp;lt;Status&amp;amp;amp;amp;amp;gt;\d)\s+(?&amp;amp;amp;amp;amp;lt;Avg&amp;amp;amp;amp;amp;gt;\d+.\d+)&amp;amp;amp;amp;amp;amp;quot; max_match=100 | rex field=source &amp;amp;amp;amp;amp;amp;quot;/(?&amp;amp;amp;amp;amp;lt;script&amp;amp;amp;amp;amp;gt;[^/]+)$&amp;amp;amp;amp;amp;amp;quot; | search script=&amp;amp;amp;amp;amp;amp;quot;ec2_ireland_script4.txt&amp;amp;amp;amp;amp;amp;quot; | xyseries _time event Avg it only shows _time and everything else is just blank.&amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;gt;
&lt;/SCRIPT&gt;&lt;/AVG&gt;&lt;/STATUS&gt;&lt;/EVENT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81333#M20590</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81334#M20591</link>
      <description>&lt;P&gt;I don't even get a chart or those chart options.  On a side note i'm going to do an experiment to have the logs separate each event into its own line and try charting that way.  I'm not sure if this is being strange because of the grouping of this data as one event.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 18:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81334#M20591</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-02T18:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81335#M20592</link>
      <description>&lt;P&gt;run it in the advanced charting view,  not in flashtimeline.   Also is it possible that "everything being blank" is just because the first page is all null values?   can you throw in a &lt;CODE&gt;| search event=* Avg=*&lt;/CODE&gt;  to restrict your incoming events to only the events that are going to be meaningful?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 18:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81335#M20592</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-02T18:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81336#M20593</link>
      <description>&lt;P&gt;Where is this?  I'm in the search app, I run the search, I don't see any option for advanced charting?  I also tried adding | fields - NULL OTHER to the end of the search but that didn't do anything.  So you understand I'm running this independent of an advanced xml dashboard config.  I'm running this in the search app.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 18:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81336#M20593</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-02T18:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81337#M20594</link>
      <description>&lt;P&gt;Weird.   they removed it from the menu.  You can see it if you just manually replace "flashtimeline" with "charting" in the URL.   but it doesn't matter.  I just ran an xyseries search in the flashtimeline view and it should run fine there. &lt;/P&gt;

&lt;P&gt;index=_internal source=*metrics.log group=per_sourcetype_thruput | xyseries _time series kb&lt;/P&gt;

&lt;P&gt;And ABSOLUTELY.  If you're indexing these events as giant multiline events, then who knows what's happening but that's probably the reason.  Fix that and reindex the data and it should make a lot more sense.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81337#M20594</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T14:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81338#M20595</link>
      <description>&lt;P&gt;well the data is extracted into fields so i don't see how it really matters.  It's just odd&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 19:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81338#M20595</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-02T19:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81339#M20596</link>
      <description>&lt;P&gt;If I change the order of the fields after xyseries i start to see at least a legend but I haven't been able to get the data to show up&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 19:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81339#M20596</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-02T19:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81340#M20597</link>
      <description>&lt;P&gt;I see now what you guys were talking about with mvzip and mvexpand.  But I wouldn't bother with that - this data shouldn't be multiline so just reindex with SHOULD_LINEMERGE="False" and I think it'll show up.   I don't think xyseries can deal with multivalue fields and maybe it just quietly fails.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 19:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81340#M20597</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-02T19:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81341#M20598</link>
      <description>&lt;P&gt;Ok we changed the way the log was displaying the data, I did add the SHOULD_LINEMERGE after it still was being cheeky, and then tried your search and it works great.  thanks for all the advice and assistance.  Tricky but finally enjoying the chart!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 20:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-values-not-working/m-p/81341#M20598</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2013-07-02T20:25:10Z</dc:date>
    </item>
  </channel>
</rss>

