<?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: Is there a reverse split command? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-a-reverse-split-command/m-p/604553#M13172</link>
    <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval Holidays = "01 / 01.01 / 06.08 / 15.11 / 01.12 / 08.12 / 25.12 / 26.05 / 01.04 / 25.06 / 02"
| streamstats count as row 
| eval Holidays = split(Holidays,".")
| mvexpand Holidays
| eval Holidays = strftime(now(),"%Y / ").Holidays
| eval Holidays = strptime(Holidays, "%Y / %m / %d")
| stats values(*) as * by row
| eval Holidays=mvjoin(Holidays,"|")&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Jul 2022 09:46:18 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-07-06T09:46:18Z</dc:date>
    <item>
      <title>Is there a reverse split command?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-a-reverse-split-command/m-p/604552#M13171</link>
      <description>&lt;P&gt;Hello everybody,&lt;BR /&gt;I have a question for the community:&lt;BR /&gt;Is there a reverse split command?&lt;/P&gt;&lt;P&gt;I'll explain my problem:&lt;BR /&gt;I have a:&lt;BR /&gt;| eval Holidays = "01 / 01.01 / 06.08 / 15.11 / 01.12 / 08.12 / 25.12 / 26.05 / 01.04 / 25.06 / 02"&lt;BR /&gt;with the holidays that I want to remove from the day count&lt;BR /&gt;(I create it, it can be a single value or a multivalue) now I have to add the current year:&lt;BR /&gt;| eval year = strftime (now (), "% Y")&lt;BR /&gt;and have this day excluded from the final count:&lt;BR /&gt;| eval dates = mvrange (C3, now (), 86400)&lt;BR /&gt;| eval dates = mvfilter (NOT match (dates, "(Excluded)"))&lt;BR /&gt;| convert ctime (dates) timeformat = "% A"&lt;BR /&gt;| eval dates = mvfilter (NOT match (dates, "(Saturday | Sunday)"))&lt;BR /&gt;| eval noOfDays = mvcount (dates)&lt;/P&gt;&lt;P&gt;I want to create an Excluded field that has holidays with the current year as value for example:&lt;BR /&gt;Excluded = "1640991600.000000 | 1641423600.00000 | 1660514400.000000 | ........"&lt;BR /&gt;It's possible?&lt;BR /&gt;Is there a reverse split command?&lt;BR /&gt;Tks&lt;BR /&gt;Br&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 09:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-a-reverse-split-command/m-p/604552#M13171</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2022-07-06T09:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a reverse split command?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-a-reverse-split-command/m-p/604553#M13172</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval Holidays = "01 / 01.01 / 06.08 / 15.11 / 01.12 / 08.12 / 25.12 / 26.05 / 01.04 / 25.06 / 02"
| streamstats count as row 
| eval Holidays = split(Holidays,".")
| mvexpand Holidays
| eval Holidays = strftime(now(),"%Y / ").Holidays
| eval Holidays = strptime(Holidays, "%Y / %m / %d")
| stats values(*) as * by row
| eval Holidays=mvjoin(Holidays,"|")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Jul 2022 09:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-a-reverse-split-command/m-p/604553#M13172</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-06T09:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a reverse split command?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-a-reverse-split-command/m-p/604555#M13173</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;BR /&gt;thanks for the solution !!&lt;BR /&gt;It works perfectly.&lt;BR /&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 09:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Is-there-a-reverse-split-command/m-p/604555#M13173</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2022-07-06T09:56:23Z</dc:date>
    </item>
  </channel>
</rss>

