<?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 query key values and draw timechart? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129252#M26533</link>
    <description>&lt;P&gt;does your event have a timestamp? Do all the events contain all those fields? Just those fields? more? Less?&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jul 2015 21:34:12 GMT</pubDate>
    <dc:creator>rsennett_splunk</dc:creator>
    <dc:date>2015-07-19T21:34:12Z</dc:date>
    <item>
      <title>How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129249#M26530</link>
      <description>&lt;P&gt;Here is the sample data.&lt;/P&gt;

&lt;P&gt;RED: 2086&lt;BR /&gt;
GREEN: 1579&lt;BR /&gt;
WHITE: 159&lt;BR /&gt;
PINK: 348&lt;BR /&gt;
ORANGE: 0&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 23:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129249#M26530</guid>
      <dc:creator>pavan257</dc:creator>
      <dc:date>2015-07-18T23:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129250#M26531</link>
      <description>&lt;P&gt;Is this 1 event or 5?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2015 05:28:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129250#M26531</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-19T05:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129251#M26532</link>
      <description>&lt;P&gt;This was one event.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2015 13:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129251#M26532</guid>
      <dc:creator>pavan257</dc:creator>
      <dc:date>2015-07-19T13:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129252#M26533</link>
      <description>&lt;P&gt;does your event have a timestamp? Do all the events contain all those fields? Just those fields? more? Less?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2015 21:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129252#M26533</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2015-07-19T21:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129253#M26534</link>
      <description>&lt;P&gt;Yes, I do have time stamp and all the events will have all these fields with different values.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2015 22:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129253#M26534</guid>
      <dc:creator>pavan257</dc:creator>
      <dc:date>2015-07-19T22:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129254#M26535</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  | rex max_match=0 field=raw "(?&amp;lt;lineData&amp;gt;[^:]+:\s*\d+)" | mvexpand lineData | rex field=lineData "(?&amp;lt;color&amp;gt;[^:]+):\s*(?&amp;lt;count&amp;gt;\d+)" | timechart span=1h sum(count) AS count BY color
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This makes your X-axis interval &lt;CODE&gt;1 hour&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2015 22:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129254#M26535</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-19T22:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129255#M26536</link>
      <description>&lt;P&gt;No. this query just displaying the events but not the visualization, all these events come through a custom shell script which we made output as "sourcetype = weblogic_stdout" not sure, if that matters here.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2015 23:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129255#M26536</guid>
      <dc:creator>pavan257</dc:creator>
      <dc:date>2015-07-19T23:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129256#M26537</link>
      <description>&lt;P&gt;After you run the search, in the UI click on the &lt;CODE&gt;Visualization&lt;/CODE&gt; tab and create what ever visualization you need.....&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 00:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129256#M26537</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-20T00:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129257#M26538</link>
      <description>&lt;P&gt;I know, but this query was not representing any timechart to visualize.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 00:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129257#M26538</guid>
      <dc:creator>pavan257</dc:creator>
      <dc:date>2015-07-20T00:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129258#M26539</link>
      <description>&lt;P&gt;You are going to have to replace &lt;CODE&gt;...&lt;/CODE&gt; with your base search.  I tested this on your sample data: it works just fine.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 02:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129258#M26539</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-20T02:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129259#M26540</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;...  | rex max_match=0 field=_raw "(?[^:]+:\s*\d+)" | mvexpand lineData | rex field=_raw "(?[^:]+):\s*(?\d+)" | timechart span=1h sum(count) AS count BY color
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with this query I am able to see only "RED", but I want to see other lines (GREEN, WHITE...) to be charted.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 23:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129259#M26540</guid>
      <dc:creator>pavan257</dc:creator>
      <dc:date>2015-07-20T23:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to query key values and draw timechart?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129260#M26541</link>
      <description>&lt;P&gt;After further cleanup of y event.. this worked perfectly. Thanks Woodcock.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 01:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-query-key-values-and-draw-timechart/m-p/129260#M26541</guid>
      <dc:creator>pavan257</dc:creator>
      <dc:date>2015-07-21T01:54:54Z</dc:date>
    </item>
  </channel>
</rss>

