<?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 do I display a list of PIDS for all searches running in my environment with a timerange of all-time? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126179#M9967</link>
    <description>&lt;P&gt;Aah.. excellent point. I didn't parse the string before commenting..&lt;/P&gt;

&lt;P&gt;Looks like a bug in that case, it seems to ignore the UTC offset in the calculation. You might want to add a tag for bug to see if someone can help.&lt;/P&gt;

&lt;P&gt;I tried locally with the below code which should have worked but no dice..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval time="1970-01-01T10:00:00+1000" | eval timestamp=strptime(time,"%Y-%m-%dT%H:%M:%S%z") | eval timelocal=strftime(timestamp,"%Y-%m-%dT%H:%M:%S%z")| table time,timestamp,timelocal
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 14 Feb 2015 00:11:06 GMT</pubDate>
    <dc:creator>ramdaspr</dc:creator>
    <dc:date>2015-02-14T00:11:06Z</dc:date>
    <item>
      <title>How do I display a list of PIDS for all searches running in my environment with a timerange of all-time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126174#M9962</link>
      <description />
      <pubDate>Tue, 03 Feb 2015 21:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126174#M9962</guid>
      <dc:creator>jwoger_splunk</dc:creator>
      <dc:date>2015-02-03T21:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display a list of PIDS for all searches running in my environment with a timerange of all-time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126175#M9963</link>
      <description>&lt;P&gt;Assuming you have the ps_sos script enabled in your environment from the SOS app, you can use the following search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sos sourcetype=ps [search index=_audit action=search user=* (apiStartTime='ZERO_TIME' AND apiEndTime='ZERO_TIME') | rex field=_raw "search_id\=\'(?&amp;lt;scrubbedsearch&amp;gt;\w+\.\w+)" | eval ARGS="*" + scrubbedsearch + "*" | fields + ARGS] | fields + PID | DEDUP PID | table PID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you the following output:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/210i5BB02E7E6C7B8867/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 21:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126175#M9963</guid>
      <dc:creator>RicoSuave</dc:creator>
      <dc:date>2015-02-03T21:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display a list of PIDS for all searches running in my environment with a timerange of all-time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126176#M9964</link>
      <description>&lt;P&gt;I was trying to do something with | rest /services/search/jobs, since it has PID and earliestTime, but for some reason my strptime call isn't parsing 1969-12-31T16:00:00-08:00 for me. Maybe somebody else can give that a whack.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 00:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126176#M9964</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2015-02-13T00:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display a list of PIDS for all searches running in my environment with a timerange of all-time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126177#M9965</link>
      <description>&lt;P&gt;Splunk only processes time beyond the unix epoch event i.e. 1/1/1970 so 1969 and earlier wont work for you&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 08:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126177#M9965</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2015-02-13T08:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display a list of PIDS for all searches running in my environment with a timerange of all-time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126178#M9966</link>
      <description>&lt;P&gt;While true, 1969-12-31 4pm Pacific time &lt;EM&gt;is&lt;/EM&gt; the epoch (time = 0), so theoretically I should get 0 rather than null.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 21:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126178#M9966</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2015-02-13T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display a list of PIDS for all searches running in my environment with a timerange of all-time?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126179#M9967</link>
      <description>&lt;P&gt;Aah.. excellent point. I didn't parse the string before commenting..&lt;/P&gt;

&lt;P&gt;Looks like a bug in that case, it seems to ignore the UTC offset in the calculation. You might want to add a tag for bug to see if someone can help.&lt;/P&gt;

&lt;P&gt;I tried locally with the below code which should have worked but no dice..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval time="1970-01-01T10:00:00+1000" | eval timestamp=strptime(time,"%Y-%m-%dT%H:%M:%S%z") | eval timelocal=strftime(timestamp,"%Y-%m-%dT%H:%M:%S%z")| table time,timestamp,timelocal
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Feb 2015 00:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-display-a-list-of-PIDS-for-all-searches-running-in-my/m-p/126179#M9967</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2015-02-14T00:11:06Z</dc:date>
    </item>
  </channel>
</rss>

