<?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: Ticket IDs older than 30+ days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287172#M86935</link>
    <description>&lt;P&gt;The above returned no results. Removed "arch" and got back 584.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 20:21:35 GMT</pubDate>
    <dc:creator>tjryberg</dc:creator>
    <dc:date>2016-08-18T20:21:35Z</dc:date>
    <item>
      <title>Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287158#M86921</link>
      <description>&lt;P&gt;Howdy Folks,&lt;BR /&gt;
Going through the support forums, I've tried numerous ways to come up with a way to search for Open ticket IDs, older than X (30, 60, 90, etc.) days.  While playing around with my query, I either get all the tickets returned, or none of them.&lt;BR /&gt;
I'm basing the "day" mark from the time the ticket was submitted (submit_dttm). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=[index name] source="dbmon-tail://MetricsITSR/ITSRC_METRICS" | dedup request_id | search assignee_support_group_name="USA.NSS.X2AIX" assignee="*" status_desc="In Progress" OR status_desc="Assigned" | eval submitdate=strptime(submit_dttm,"%m/%d/%y") |where now()&amp;lt;relative_time(submidate, "+30d") | table assignee submitdate request_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My expectation of the above, is a table with the person's name, the date the ticket was submitted, and the ticket #&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 13:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287158#M86921</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-07-29T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287159#M86922</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;UPDATED TO FIX TYPO&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=[index name] source="dbmon-tail://MetricsITSR/ITSRC_METRICS" | dedup request_id | search assignee_support_group_name="USA.NSS.X2AIX" assignee="*" status_desc="In Progress" OR status_desc="Assigned" | eval submitdate=strptime(submit_dttm,"%m/%d/%y") |where submitdate&amp;lt;relative_time(now(), "-30d") | table assignee submitdate request_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jul 2016 15:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287159#M86922</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-29T15:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287160#M86923</link>
      <description>&lt;P&gt;No luck. Still zero results returned.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 16:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287160#M86923</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-07-29T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287161#M86924</link>
      <description>&lt;P&gt;I had misspelled submitdate, did you catch that? If not, try the updated version.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 17:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287161#M86924</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-29T17:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287162#M86925</link>
      <description>&lt;P&gt;Yup, I did catch that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
No Luck&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 18:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287162#M86925</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-07-29T18:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287163#M86926</link>
      <description>&lt;P&gt;And the format for submitdate is correct?  If it is, the eval should return earlier than (-30d) data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval submitdate=strptime(submit_dttm,"%m/%d/%y") | where submitdate&amp;lt;relative_time(now(), "-30d") | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jul 2016 18:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287163#M86926</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-29T18:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287164#M86927</link>
      <description>&lt;P&gt;I played with some things, over the weekend. Still no luck.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 17:13:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287164#M86927</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-08-01T17:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287165#M86928</link>
      <description>&lt;P&gt;Can you share some raw events?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 17:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287165#M86928</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-01T17:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287166#M86929</link>
      <description>&lt;P&gt;So I'm trying this a different way. This search gets results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS"  | dedup request_id  | search assignee_support_group_name="usa.nss.x2aix*" OR assignee_support_group_name="usa.nss.x2linux*" OR assignee_support_group_name="usa.nss.x2sun" OR assignee_support_group_name="usa.nss.x2Windows" OR assignee_support_group_name="usa.dis.dsaix" OR assignee_support_group_name="usa.dis.dslinux" OR assignee_support_group_name="usa.dis.dssun" OR assignee_support_group_name="usa.dis.dswin" status_desc=Open OR status_desc=Assigned summary="*Decommission*" | chart count as Open-Decoms by assignee_support_group_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I add &lt;CODE&gt;latest=-30d&lt;/CODE&gt;, nothing returns.&lt;BR /&gt;
I've manually looked and verified that we have tickets out there, older than 30 days. &lt;BR /&gt;
Any idea why I'm getting nothing back?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 19:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287166#M86929</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-08-18T19:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287167#M86930</link>
      <description>&lt;P&gt;&lt;CODE&gt;latest=-30d&lt;/CODE&gt; will apply on the &lt;CODE&gt;_time&lt;/CODE&gt; field. Do you have data with &lt;CODE&gt;_time&lt;/CODE&gt; earlier than 30d?&lt;/P&gt;

&lt;P&gt;See if this works...&lt;CODE&gt;index=_internal latest=-30d | head 1&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 19:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287167#M86930</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-18T19:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287168#M86931</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;..... summary="*Decommission*" index=_internal latest=-30d | head 1 | chart count as Open-Decoms by assignee_support_group_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doesn't return anything&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 19:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287168#M86931</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-08-18T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287169#M86932</link>
      <description>&lt;P&gt;The sample query I gave was to run by itself. Or you could try this to see if it returns any results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" latest=-30d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run this by itself to see if it returns data. If it doesn't, it means you have no events with &lt;CODE&gt;_time&lt;/CODE&gt; earlier than 30d. In that case, you could do something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" latest=[search index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" | eval search=(strptime(submit_dttm,"%m/%d/%y")-(86400*30)) | fields search] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2016 19:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287169#M86932</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-18T19:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287170#M86933</link>
      <description>&lt;P&gt;I did run &lt;CODE&gt;index=_internal latest=-30d | head 1&lt;/CODE&gt; by itself. I should've mentioned that.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" latest=-30d&lt;/CODE&gt; Returned 300,000+ events, so yes... stuff is there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" latest=[search index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" | eval search=(strptime(submit_dttm,"%m/%d/%y")-(86400*30)) | fields search] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This returned the error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'search' command: Unable to parse the search: Comparator '=' has an invalid term on the right hand side.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried playing around with it, but the error persists.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 20:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287170#M86933</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-08-18T20:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287171#M86934</link>
      <description>&lt;P&gt;Yeah progress &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; does this return any data?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" (arch assignee_support_group_name="usa.nss.x2aix*" OR assignee_support_group_name="usa.nss.x2linux*" OR assignee_support_group_name="usa.nss.x2sun" OR assignee_support_group_name="usa.nss.x2Windows" OR assignee_support_group_name="usa.dis.dsaix" OR assignee_support_group_name="usa.dis.dslinux" OR assignee_support_group_name="usa.dis.dssun" OR assignee_support_group_name="usa.dis.dswin") AND (status_desc=Open OR status_desc=Assigned) AND (summary="*Decommission*") | dedup request_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this doesn't try one criteria at a time to see which one breaks it&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 20:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287171#M86934</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-18T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287172#M86935</link>
      <description>&lt;P&gt;The above returned no results. Removed "arch" and got back 584.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 20:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287172#M86935</guid>
      <dc:creator>tjryberg</dc:creator>
      <dc:date>2016-08-18T20:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket IDs older than 30+ days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287173#M86936</link>
      <description>&lt;P&gt;&lt;CODE&gt;arch&lt;/CODE&gt; was a typo. Shouldn't be there. Is 584 right number? If yes, you can add the final chart command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=gioanalytics_na source="dbmon-tail://MetricsITSR/ITSRC_METRICS" (assignee_support_group_name="usa.nss.x2aix*" OR assignee_support_group_name="usa.nss.x2linux*" OR assignee_support_group_name="usa.nss.x2sun" OR assignee_support_group_name="usa.nss.x2Windows" OR assignee_support_group_name="usa.dis.dsaix" OR assignee_support_group_name="usa.dis.dslinux" OR assignee_support_group_name="usa.dis.dssun" OR assignee_support_group_name="usa.dis.dswin") AND (status_desc=Open OR status_desc=Assigned) AND (summary="*Decommission*") 
| dedup request_id
| stats count as Open-Decoms by assignee_support_group_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2016 20:27:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ticket-IDs-older-than-30-days/m-p/287173#M86936</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-18T20:27:41Z</dc:date>
    </item>
  </channel>
</rss>

