<?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: Comparing CSVs day over day in Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Comparing-CSVs-day-over-day-in-Splunk/m-p/353589#M64732</link>
    <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;P&gt;index="main" sourcetype="csv" earliest=@d latest=+1d@d|join  type=left file_name [search index="main" sourcetype="csv" earliest=-1d@d latest=@d|rename md5_hash as old_md5_hash]&lt;BR /&gt;
|table file_name md5_hash old_md5_hash&lt;BR /&gt;
|eval status=case(isnull(old_md5_hash),"ADD",md5_hash!=old_md5_hash,"UPDATE",md5_hash=old_md5_hash,"-")&lt;BR /&gt;
| append [search index="main" sourcetype="csv" earliest=-1d@d latest=@d NOT [search index="main" sourcetype="csv" earliest=@d latest=+1d@d | fields file_name ]|table  file_name md5_hash|eval status="DELETE"]&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:13:25 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2020-09-29T13:13:25Z</dc:date>
    <item>
      <title>Comparing CSVs day over day in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Comparing-CSVs-day-over-day-in-Splunk/m-p/353588#M64731</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;I am reading in a CSV daily into index=main. It will have about 100k items in it. I want an alert for any added, removed file_name. OR an MD5 has changed. I have them brought in as their own event each. &lt;/P&gt;

&lt;P&gt;CSV format is easy - &lt;BR /&gt;
file_name, md5_hash &lt;/P&gt;

&lt;P&gt;Looking for a snappy search to compare these files? Any samples or commands or advice? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:13:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Comparing-CSVs-day-over-day-in-Splunk/m-p/353588#M64731</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2020-09-29T13:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing CSVs day over day in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Comparing-CSVs-day-over-day-in-Splunk/m-p/353589#M64732</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;P&gt;index="main" sourcetype="csv" earliest=@d latest=+1d@d|join  type=left file_name [search index="main" sourcetype="csv" earliest=-1d@d latest=@d|rename md5_hash as old_md5_hash]&lt;BR /&gt;
|table file_name md5_hash old_md5_hash&lt;BR /&gt;
|eval status=case(isnull(old_md5_hash),"ADD",md5_hash!=old_md5_hash,"UPDATE",md5_hash=old_md5_hash,"-")&lt;BR /&gt;
| append [search index="main" sourcetype="csv" earliest=-1d@d latest=@d NOT [search index="main" sourcetype="csv" earliest=@d latest=+1d@d | fields file_name ]|table  file_name md5_hash|eval status="DELETE"]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Comparing-CSVs-day-over-day-in-Splunk/m-p/353589#M64732</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-29T13:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing CSVs day over day in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Comparing-CSVs-day-over-day-in-Splunk/m-p/353590#M64733</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your search here that has both data sets | stats dc(md5_hash) AS md5_hash_count count by file_name | search count&amp;lt;2 OR md5_hash_count&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Comparing-CSVs-day-over-day-in-Splunk/m-p/353590#M64733</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-14T15:54:27Z</dc:date>
    </item>
  </channel>
</rss>

