<?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: How to compare multiple files by diff command in search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25138#M4699</link>
    <description>&lt;P&gt;Thank you dart for helping me.&lt;BR /&gt;
I'll try it.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2013 03:46:44 GMT</pubDate>
    <dc:creator>sunrise</dc:creator>
    <dc:date>2013-02-14T03:46:44Z</dc:date>
    <item>
      <title>How to compare multiple files by diff command in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25136#M4697</link>
      <description>&lt;P&gt;I have a question about diff command in search.&lt;/P&gt;

&lt;P&gt;Of course though, a diff command compares two files, &lt;BR /&gt;
I want to compare multiple files.&lt;BR /&gt;
For example, when three configuration files (a.conf, b.conf, c.conf) were put into an indexer, &lt;BR /&gt;
I want to compare those files at one search like below.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Compare a.conf with b.conf&lt;/LI&gt;
&lt;LI&gt;Compare a.conf with c.conf&lt;/LI&gt;
&lt;LI&gt;Displays the each differences&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Can we loop the command by reading the list file?&lt;BR /&gt;
Any idea anyone?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 09:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25136#M4697</guid>
      <dc:creator>sunrise</dc:creator>
      <dc:date>2013-02-08T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple files by diff command in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25137#M4698</link>
      <description>&lt;P&gt;The presentation is not the best, but this does what you want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | head 3 | appendpipe [diff pos1=1 pos2=2 | eval diff = _raw]  | appendpipe [diff pos1=1 pos2=3 | eval diff= _raw] | stats values(diff)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2013 00:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25137#M4698</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2013-02-12T00:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple files by diff command in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25138#M4699</link>
      <description>&lt;P&gt;Thank you dart for helping me.&lt;BR /&gt;
I'll try it.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 03:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25138#M4699</guid>
      <dc:creator>sunrise</dc:creator>
      <dc:date>2013-02-14T03:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple files by diff command in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25139#M4700</link>
      <description>&lt;P&gt;From the class&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;s=a OR s=b |stats count values(source) BY _raw, lineNum |search (count=1 source!=a) OR (count=2 source!=a)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Mar 2014 05:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-multiple-files-by-diff-command-in-search/m-p/25139#M4700</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2014-03-13T05:30:26Z</dc:date>
    </item>
  </channel>
</rss>

