<?xml version="1.0" ?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
	<channel>
		<title>Splunk Base : SplunkAdministration : #3401</title>
		<link>http://www.splunk.com/support/forum:SplunkAdministration/3401</link>
		<description></description>
		<pubDate>Mon, 13 Feb 2012 17:54:46 PST</pubDate>
		<lastBuildDate>Mon, 13 Feb 2012 17:54:46 PST</lastBuildDate>
		<language>en-us</language>
		<copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
		<item>
			<title>Comparing two files</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3401/11110</link>
			<description>&lt;p&gt;Thnx worked like a charm!&lt;/p&gt;

</description>
			<pubDate>Thu, 15 Oct 2009 03:26:01 PDT</pubDate>
			<author>CerielTjuh</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3401/11110</guid>
		</item>
		<item>
			<title>Comparing two files</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3401/11091</link>
			<description>&lt;p&gt;Sure! Let's assume today's file is export1014.txt and yesterday's file was export1013.txt.&lt;/p&gt;

&lt;p&gt;You need to configure Splunk to index the entire file as one event, so in props.conf you would configure something like this:&lt;/p&gt;


&lt;div class=&quot;wikiCode&quot;&gt;&lt;pre&gt;
[source::.../export*.txt]
DATETIME_CONFIG=CURRENT
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE=somethingwhichshouldneverappearinaneventxyz123&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Once splunk indexes the file as such, you can just use the diff command as I mentioned above:&lt;/p&gt;


&lt;div class=&quot;wikiCode&quot;&gt;&lt;pre&gt;
source=*export1013.txt OR source=*export1014.txt | diff&lt;/pre&gt;&lt;/div&gt;

</description>
			<pubDate>Wed, 14 Oct 2009 07:36:20 PDT</pubDate>
			<author>araitz</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3401/11091</guid>
		</item>
		<item>
			<title>Comparing two files</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3401/11080</link>
			<description>&lt;p&gt;Hi araitz,&lt;/p&gt;

&lt;p&gt;Let me explain the situation, Novell reports all trustees every night in a txt file:&lt;/p&gt;

&lt;p&gt;&amp;quot;TRUSTEE&amp;quot;,&amp;quot;SYS:\Icon&amp;quot;,&amp;quot;LONG&amp;quot;,&amp;quot;[Root]&amp;quot;,&amp;quot;RF&amp;quot;&lt;br /&gt;
&amp;quot;TRUSTEE&amp;quot;,&amp;quot;SYS:\JAVA&amp;quot;,&amp;quot;LONG&amp;quot;,&amp;quot;SRV.AZL&amp;quot;,&amp;quot;RF&amp;quot;&lt;br /&gt;
&amp;quot;TRUSTEE&amp;quot;,&amp;quot;SYS:\LOGIN&amp;quot;,&amp;quot;LONG&amp;quot;,&amp;quot;[Public]&amp;quot;,&amp;quot;RF&amp;quot;&lt;/p&gt;

&lt;p&gt;I index these files every night and want to compare the results with Splunk, is this even possible?&lt;/p&gt;

&lt;p&gt;Thnx in advance!&lt;/p&gt;

</description>
			<pubDate>Wed, 14 Oct 2009 01:46:35 PDT</pubDate>
			<author>CerielTjuh</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3401/11080</guid>
		</item>
		<item>
			<title>Comparing two files</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3401/11024</link>
			<description>&lt;p&gt;Sure, the unix &amp;quot;diff&amp;quot; command :)&lt;/p&gt;

&lt;p&gt;Splunk &amp;quot;diff&amp;quot; will only compare two search results, so you should index both the files, and then you can use diff:&lt;/p&gt;


&lt;div class=&quot;wikiCode&quot;&gt;&lt;pre&gt;

source=E:\test\3.log OR source=E:\test\1.log | diff
&lt;/pre&gt;&lt;/div&gt;

</description>
			<pubDate>Fri, 09 Oct 2009 08:08:04 PDT</pubDate>
			<author>araitz</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3401/11024</guid>
		</item>
		<item>
			<title>Comparing two files</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3401/11021</link>
			<description>&lt;p&gt;Is there a possibility to compare two files? :)&lt;/p&gt;

</description>
			<pubDate>Fri, 09 Oct 2009 07:31:36 PDT</pubDate>
			<author>CerielTjuh</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3401/11021</guid>
		</item>
		<item>
			<title>Comparing two files</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3401/11018</link>
			<description>&lt;p&gt;I don't think you are using the diff command correctly, as it isn't intended to take a file as an argument.  Rather it is designed to show the difference between two search results:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.splunk.com/base/Documentation/latest/SearchReference/Diff&quot;&gt;http://www.splunk.com/base/Documentation/latest/SearchReference/Diff&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let me know if I am missing something.&lt;/p&gt;

</description>
			<pubDate>Fri, 09 Oct 2009 06:28:45 PDT</pubDate>
			<author>araitz</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3401/11018</guid>
		</item>
		<item>
			<title>Comparing two files</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3401/11011</link>
			<description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;After trying some time, I was not able to compare two files:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&lt;br /&gt;
| file E:\test\3.log | diff E:\test\1.log&lt;br /&gt;
&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.log&lt;/strong&gt;&lt;br /&gt;
&lt;tt&gt;&lt;br /&gt;
username=aa&lt;br /&gt;
username=bb&lt;br /&gt;
&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.log&lt;/strong&gt;&lt;br /&gt;
&lt;tt&gt;&lt;br /&gt;
username=aa&lt;br /&gt;
username=cc&lt;br /&gt;
username=bb&lt;br /&gt;
&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This is what I get:&lt;/p&gt;

&lt;p&gt;-username=aa&lt;br /&gt;
+username=cc&lt;/p&gt;

&lt;p&gt;Platform: Windows 2008 Server (32bit)&lt;br /&gt;
Splunk: 4.0.4.&lt;/p&gt;

&lt;p&gt;Hope you can help&lt;/p&gt;

</description>
			<pubDate>Fri, 09 Oct 2009 05:44:01 PDT</pubDate>
			<author>CerielTjuh</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3401/11011</guid>
		</item>
	</channel>
</rss>

