<?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: Time range in rest query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-range-in-rest-query-Unable-to-get-it-down-to-last-hour/m-p/618905#M215100</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ra1n,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the | rest command gives you the state of an endpoint - in this case savedsearches. Dit does not - what you might expect - gives you a history. That's why timebases searches are not working by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want an audit on your correlation searches, i would suggest implement a cicd workflow and have the app and/or savedsearches.conf file version controled... particularly if dealing in security environments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 11:56:45 GMT</pubDate>
    <dc:creator>schose</dc:creator>
    <dc:date>2022-10-31T11:56:45Z</dc:date>
    <item>
      <title>Time range in rest query- Unable to get it down to last hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-range-in-rest-query-Unable-to-get-it-down-to-last-hour/m-p/618903#M215098</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ive got the below query that im using to try and see when correlation searches have been edited:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local count=0 /servicesNS/-/SplunkEnterpriseSecuritySuite/saved/searches
| where match('action.correlationsearch.enabled', "1|[Tt]|[Tt][Rr][Uu][Ee]")
| where disabled=0
| eval actions=split(actions, ",")
| rename "eai:acl.owner" as "Created By"
| rename author as "Updated By"
| rename updated as "Update time"
| fields title, search, description, "Update time", "Updated By", "Created By"&lt;/LI-CODE&gt;
&lt;P&gt;The issue that I'm having here is that no matter what i try, I am unable to narrow this down to the last hour for example and it always returns the last couple of months.&lt;/P&gt;
&lt;P&gt;Any help on this would be great!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 14:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-range-in-rest-query-Unable-to-get-it-down-to-last-hour/m-p/618903#M215098</guid>
      <dc:creator>Ra1n</dc:creator>
      <dc:date>2022-10-31T14:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time range in rest query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-range-in-rest-query-Unable-to-get-it-down-to-last-hour/m-p/618905#M215100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ra1n,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the | rest command gives you the state of an endpoint - in this case savedsearches. Dit does not - what you might expect - gives you a history. That's why timebases searches are not working by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want an audit on your correlation searches, i would suggest implement a cicd workflow and have the app and/or savedsearches.conf file version controled... particularly if dealing in security environments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 11:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-range-in-rest-query-Unable-to-get-it-down-to-last-hour/m-p/618905#M215100</guid>
      <dc:creator>schose</dc:creator>
      <dc:date>2022-10-31T11:56:45Z</dc:date>
    </item>
  </channel>
</rss>

