<?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: Validate changes through SPL in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Validate-changes-through-SPL/m-p/525272#M148206</link>
    <description>&lt;P&gt;Because I am filtering with "abc". So technically package exist is rhetorical as it always gonna give 1&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 01:13:35 GMT</pubDate>
    <dc:creator>k31453</dc:creator>
    <dc:date>2020-10-19T01:13:35Z</dc:date>
    <item>
      <title>Validate changes through SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Validate-changes-through-SPL/m-p/525171#M148159</link>
      <description>&lt;P&gt;Hi, We are going to deploy changes which will delete certain package from instance. We want to know whether this package is getting deleted after the changes goes through. We are capturing this data in Splunk.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So Let's say we have package=abc We can find if package exist using following SPL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=osstats sourcetype=package "abc"
| bin _time span=1d 
| multikv fields NAME 
| eval package_exist=if(like(NAME,"abc%"),1,0) 
| eval package_name=if(like(NAME,"abc%"),NAME,NULL) 
| stats count by _time host package_exist package_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following index is polling data hourly therefore if search for last 24 hours, it will report count=24, host=abc.com,package_exist=1, package_name=abc&lt;BR /&gt;&lt;BR /&gt;Now I have created lookup table from this for last 1 year worth of data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What i want to know is, suppose I have host (doesn't have to be part of above query), I want to check if it had package earlier and now it is getting removed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure how I can go above doing that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 03:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Validate-changes-through-SPL/m-p/525171#M148159</guid>
      <dc:creator>k31453</dc:creator>
      <dc:date>2020-10-17T03:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Validate changes through SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Validate-changes-through-SPL/m-p/525179#M148167</link>
      <description>&lt;P&gt;Assuming your index has been populated every hour for the past year, your query appears to get the daily count of the number of hours each abc package existed on each host.&amp;nbsp; The package doesn't have to exist on the host now. Why isn't what you already have sufficient?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 08:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Validate-changes-through-SPL/m-p/525179#M148167</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-17T08:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Validate changes through SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Validate-changes-through-SPL/m-p/525272#M148206</link>
      <description>&lt;P&gt;Because I am filtering with "abc". So technically package exist is rhetorical as it always gonna give 1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 01:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Validate-changes-through-SPL/m-p/525272#M148206</guid>
      <dc:creator>k31453</dc:creator>
      <dc:date>2020-10-19T01:13:35Z</dc:date>
    </item>
  </channel>
</rss>

