<?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 a mapped search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78192#M19790</link>
    <description>&lt;P&gt;ah, just missing search as the first term inside [ ].&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2013 00:29:34 GMT</pubDate>
    <dc:creator>jxstanford</dc:creator>
    <dc:date>2013-07-09T00:29:34Z</dc:date>
    <item>
      <title>timechart a mapped search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78189#M19787</link>
      <description>&lt;P&gt;Here's a summary of what I'm trying to do:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Find a job by ID&lt;/LI&gt;
&lt;LI&gt;Use the start/end time of that job to bound a search for system performance metrics&lt;/LI&gt;
&lt;LI&gt;chart the results&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;This is a search that finds the job and brings back the performance results in the jobs time window:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype=joblog jobID=693 starttime="06/14/2013:00:00:00" endtime="06/17/2013:00:00:00" | map search="search eventtype=windows_performance Host=ZSN* object=Processor counter=%\ Processor\ Time instance=_Total timeformat=\"%m/%d/%Y %H:%M:%S %p\" starttime=$startTime$ endtime=$endTime$"&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;example result:&lt;/P&gt;

&lt;P&gt;06/15/2013 13:46:12.646&lt;BR /&gt;
collection=CPUTime&lt;BR /&gt;
object=Processor&lt;BR /&gt;
counter="% Processor Time"&lt;BR /&gt;
instance=_Total&lt;BR /&gt;
Value=3.2852405007373298&lt;/P&gt;

&lt;P&gt;But when I try to timechart it like:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;| timechart span=15s max(Value)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The timechart has the outer start/end time and does not contain any results.  Any suggestions on how to create this type of chart?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78189#M19787</guid>
      <dc:creator>jxstanford</dc:creator>
      <dc:date>2020-09-28T14:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: timechart a mapped search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78190#M19788</link>
      <description>&lt;P&gt;You should use a subsearch instead of &lt;CODE&gt;map&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ search sourcetype=joblog jobID=693 earliest=-2w latest=-2w+1d
  | eval earliest=strptime(startTime,"%m/%d/%Y %H:%M:%S") 
  | eval latest=strptime(endTime,"%m/%d/%Y %H:%M:%S")
  | return earliest latest ]
eventtype=windows_performance Host=ZSN* object=Processor instance=_Total
| timechart max(Value)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2013 22:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78190#M19788</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-07-01T22:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: timechart a mapped search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78191#M19789</link>
      <description>&lt;P&gt;I figured there was a better way.  When I use this, it returns "Unknown search command 'sourcetype'."  I'm pretty much a noob.  Am I missing part of the command?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 15:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78191#M19789</guid>
      <dc:creator>jxstanford</dc:creator>
      <dc:date>2013-07-02T15:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: timechart a mapped search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78192#M19790</link>
      <description>&lt;P&gt;ah, just missing search as the first term inside [ ].&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 00:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-a-mapped-search/m-p/78192#M19790</guid>
      <dc:creator>jxstanford</dc:creator>
      <dc:date>2013-07-09T00:29:34Z</dc:date>
    </item>
  </channel>
</rss>

