<?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: Unable to generate time interval into multi value field in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-generate-time-interval-into-multi-value-field/m-p/709403#M21380</link>
    <description>&lt;P&gt;Thank you for your response, it has solved my problem!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 02:45:52 GMT</pubDate>
    <dc:creator>jiaminyun</dc:creator>
    <dc:date>2025-01-22T02:45:52Z</dc:date>
    <item>
      <title>Unable to generate time interval into multi value field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-generate-time-interval-into-multi-value-field/m-p/709275#M21368</link>
      <description>&lt;P&gt;My requirement is that my start time is January 1, 2024 and end time is January 7, 2024. In addition to placing the start and end times in multi value fields, please also include each date in this time interval, such as January 2, 2024, January 3, 2024, January 4, 2024, January 5, 2024, January 6, 2024. The final field content should be January 1, 2024, January 2, 2024, January 3, 2024, January 4, 2024, January 5, 2024, January 6, 2024, and July.&lt;BR /&gt;The SPL statement is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start_date = "2024-01-01", end_date = "2024-01-07"
| eval start_timestamp = strptime(start_date, "%Y-%m-%d")
| eval end_timestamp = strptime(end_date, "%Y-%m-%d")
| eval num_days = round((end_timestamp - start_timestamp) / 86400)
| eval range = mvrange(1, num_days)
| eval intermediate_dates = strftime(relative_time(start_timestamp, "+".tostring(range)."days"), "%Y-%m-%d")
| eval all_dates = mvappend(start_date, intermediate_dates)
| eval all_dates = mvappend(all_dates, end_date)
| fields all_dates&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Jan 2025 08:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-generate-time-interval-into-multi-value-field/m-p/709275#M21368</guid>
      <dc:creator>jiaminyun</dc:creator>
      <dc:date>2025-01-21T08:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to generate time interval into multi value field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-generate-time-interval-into-multi-value-field/m-p/709279#M21370</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start_date = "2024-01-01", end_date = "2024-01-07"
| eval start_timestamp = strptime(start_date, "%Y-%m-%d")
| eval end_timestamp = strptime(end_date, "%Y-%m-%d")
| eval num_days = round((end_timestamp - start_timestamp) / 86400)
| eval all_dates = start_date
| eval range = mvrange(1, num_days + 1)
| foreach mode=multivalue range
    [| eval all_dates=mvappend(all_dates,strftime(relative_time(start_timestamp,"+".&amp;lt;&amp;lt;ITEM&amp;gt;&amp;gt;."d"),"%Y-%m-%d"))]
| fields all_dates&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Jan 2025 08:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-generate-time-interval-into-multi-value-field/m-p/709279#M21370</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-21T08:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to generate time interval into multi value field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-generate-time-interval-into-multi-value-field/m-p/709403#M21380</link>
      <description>&lt;P&gt;Thank you for your response, it has solved my problem!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 02:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-generate-time-interval-into-multi-value-field/m-p/709403#M21380</guid>
      <dc:creator>jiaminyun</dc:creator>
      <dc:date>2025-01-22T02:45:52Z</dc:date>
    </item>
  </channel>
</rss>

