<?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 Time Modifier &amp;quot;latest=@mon+20d&amp;quot; in REST API in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-Modifier-quot-latest-mon-20d-quot-in-REST-API/m-p/500035#M85218</link>
    <description>&lt;P&gt;Time modifier is not working with splunk rest API. Below is the query.&lt;/P&gt;

&lt;P&gt;curl -k -u 'xxxxxxxxx:xxxxxxxxx' &lt;A href="https://api-splunk.com:8089/services/search/jobs/export" target="_blank"&gt;https://api-splunk.com:8089/services/search/jobs/export&lt;/A&gt;  -d search="search earliest=@mon-10d latest=@mon+20d index=usage_summary report=LicenseUsage | search idx= | dedup _time,idx | timechart span=1d sum(MBytes) as LicenseUsagePerDay| stats avg(LicenseUsagePerDay) as AveLicenseUsagePerDay | table AveLicenseUsagePerDay" -d output_mode=csv&lt;/P&gt;

&lt;P&gt;it's not displaying any data but when we replace latest=@mon+20d to latest=now then it's working fine.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:42:12 GMT</pubDate>
    <dc:creator>ankur_kumar377</dc:creator>
    <dc:date>2020-09-30T04:42:12Z</dc:date>
    <item>
      <title>Time Modifier "latest=@mon+20d" in REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Modifier-quot-latest-mon-20d-quot-in-REST-API/m-p/500035#M85218</link>
      <description>&lt;P&gt;Time modifier is not working with splunk rest API. Below is the query.&lt;/P&gt;

&lt;P&gt;curl -k -u 'xxxxxxxxx:xxxxxxxxx' &lt;A href="https://api-splunk.com:8089/services/search/jobs/export" target="_blank"&gt;https://api-splunk.com:8089/services/search/jobs/export&lt;/A&gt;  -d search="search earliest=@mon-10d latest=@mon+20d index=usage_summary report=LicenseUsage | search idx= | dedup _time,idx | timechart span=1d sum(MBytes) as LicenseUsagePerDay| stats avg(LicenseUsagePerDay) as AveLicenseUsagePerDay | table AveLicenseUsagePerDay" -d output_mode=csv&lt;/P&gt;

&lt;P&gt;it's not displaying any data but when we replace latest=@mon+20d to latest=now then it's working fine.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Modifier-quot-latest-mon-20d-quot-in-REST-API/m-p/500035#M85218</guid>
      <dc:creator>ankur_kumar377</dc:creator>
      <dc:date>2020-09-30T04:42:12Z</dc:date>
    </item>
  </channel>
</rss>

