<?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 edit my search to get unique values based on JobName or jobid? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-unique-values-based-on-JobName-or/m-p/220683#M64826</link>
    <description>&lt;P&gt;@sundareshr&lt;BR /&gt;
Thanks for the ans. i have posted another thread based on the same query. When I try to display a chart based on avg of JobRunTime for  a specific jobname , the values shows way to high which does not match with the ones which we get from the above table.&lt;/P&gt;

&lt;P&gt;is there a way I can display the correct values of  JobRunTime for a specific job in a bar chart or a line for last 7 days or 30 days.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2016 23:11:59 GMT</pubDate>
    <dc:creator>athorat</dc:creator>
    <dc:date>2016-01-08T23:11:59Z</dc:date>
    <item>
      <title>How to edit my search to get unique values based on JobName or jobid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-unique-values-based-on-JobName-or/m-p/220681#M64824</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am displaying a table which shows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; table JobName, jobid, start, end ,diff
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;using the following search. How do I get unique values based on Job name or Job Id?&lt;BR /&gt;
&lt;CODE&gt;stats values(JobName)&lt;/CODE&gt; does not yield results.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=aap_prod sourcetype="HDP:PROD:OOZIE"  (":start:] with user-retry state" OR "@end***]Action updated in DB!")  | rex "TOKEN\[\] APP\[(?&amp;lt;JobName&amp;gt;[^\]]*)"  | rex "ACTION\[[^\@]*(?&amp;lt;Action&amp;gt;[^\d\]]*)" | rex "JOB\[?(?&amp;lt;jobid&amp;gt;[\d-]+)-" | streamstats current=f window=2 range(_time) as diff latest(_time) as end earliest(_time) as start| table JobName, jobid, start, end ,diff| eval start=strftime(start, "%c")|eval end=strftime(end, "%c")|eval diff=tostring(diff, "duration")| search diff!=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for looking into this.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-unique-values-based-on-JobName-or/m-p/220681#M64824</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2016-01-07T21:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to get unique values based on JobName or jobid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-unique-values-based-on-JobName-or/m-p/220682#M64825</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;dedup JobID&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-unique-values-based-on-JobName-or/m-p/220682#M64825</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-01-07T21:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to get unique values based on JobName or jobid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-unique-values-based-on-JobName-or/m-p/220683#M64826</link>
      <description>&lt;P&gt;@sundareshr&lt;BR /&gt;
Thanks for the ans. i have posted another thread based on the same query. When I try to display a chart based on avg of JobRunTime for  a specific jobname , the values shows way to high which does not match with the ones which we get from the above table.&lt;/P&gt;

&lt;P&gt;is there a way I can display the correct values of  JobRunTime for a specific job in a bar chart or a line for last 7 days or 30 days.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 23:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-unique-values-based-on-JobName-or/m-p/220683#M64826</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2016-01-08T23:11:59Z</dc:date>
    </item>
  </channel>
</rss>

