<?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 Is it possible to do event based comparison on file SAVE? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243023#M72310</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;Is it possible to do event based comparison on file SAVE?&lt;/P&gt;

&lt;P&gt;Events compare with previous file and present file and provide differences.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 22:25:16 GMT</pubDate>
    <dc:creator>rajgowd1</dc:creator>
    <dc:date>2016-10-11T22:25:16Z</dc:date>
    <item>
      <title>Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243023#M72310</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;Is it possible to do event based comparison on file SAVE?&lt;/P&gt;

&lt;P&gt;Events compare with previous file and present file and provide differences.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 22:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243023#M72310</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2016-10-11T22:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243024#M72311</link>
      <description>&lt;P&gt;I cannot send you now because my pc is and will be offline until Tomorrow, but in the Splunk partner kit there is an example that solves your problem.&lt;BR /&gt;
If you'll never find, I'll send it to you Tomorrow.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 05:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243024#M72311</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-12T05:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243025#M72312</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;BR /&gt;
I tried and new to splunk.i am not able to find in the splunk partner kit.please send me once you get a chance.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243025#M72312</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2016-10-12T14:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243026#M72313</link>
      <description>&lt;P&gt;Hi rajgowd1,&lt;BR /&gt;
Ask to your Splunk Channel Manager for Partner Kit: it's very useful to see some applications and examples, I cannot send you because it's very large.&lt;/P&gt;

&lt;P&gt;Every way, App is very old but useful only to see the approach.&lt;/P&gt;

&lt;P&gt;In inputs.conf you can see how to load changes and files.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fschange:/your_files_to_monitor_with_full_path]
sourcetype = fschange
index = main
recurse = true
pollPeriod = 5
fullEvent = true
sendEventMaxSize = -1
hashMaxSize = 99999999
index = changemgmt
disabled = 0

[monitor://your_files_to_monitor_with_full_path]
followTail = 0
sourcetype = config_file
index = changemgmt
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can show modification using panels with searches like these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Top actions
index=changemgmt sourcetype=fschange | top action

Type of changes made over a period
index=changemgmt sourcetype=fschange | timechart count by action

Change Results
index=changemgmt sourcetype=fschange | table host, _time, action, path

Detailed Configuration Changes
index=changemgmt sourcetype=config_file  | diff diffheader=true | highlight +,-
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Obviously you have to extract the fields to use in searches.&lt;/P&gt;

&lt;P&gt;I hope to be useful for you.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 07:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243026#M72313</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-14T07:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243027#M72314</link>
      <description>&lt;P&gt;HI Giuseppe,&lt;/P&gt;

&lt;P&gt;Thank you so much. I tried the configuration which you provided and tried all search commands. Everything is working as expected.&lt;/P&gt;

&lt;P&gt;Do I need to restart the Splunk instance if I make any changes in inputs.conf file?&lt;/P&gt;

&lt;P&gt;When I try this command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=changemgmt sourcetype=config_file  | diff diffheader=true | highlight +,-
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it is showing the events like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;--- fschangemonitor
+++ /home/splunk/config/Chrystoki.conf
@@ -1 +1,8 @@
-Fri Oct 14 12:07:01 2016 action=update, path="//home/splunk/config/Chrystoki.conf", isdir=0, size=1627, gid=500, uid=500, modtime="Fri Oct 14 12:06:25 2016", mode="rw-rw-r--", hash=F6D1B2512F5F32A1357A1CE7B16888A54C26CDC6AA7C0A17EFE6FF3DC3130AFE, chgs="modtime hash "
+Luna = {
+  DefaultTimeOut = 200000;
+  PEDTimeout1 = 100000;
+  PEDTimeout2 = 100000;
+  PEDTimeout3 = 10000;
+  KeypairGenTimeOut = 2700000;
+  CloningCommandTimeOut = 300000;
+}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is it possible to show only the content with good representation?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 16:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243027#M72314</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2016-10-14T16:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243028#M72315</link>
      <description>&lt;P&gt;To use the new inputs.conf you have to restart Splunk.&lt;/P&gt;

&lt;P&gt;The panel shows differences between files that you wanted to highlight.&lt;/P&gt;

&lt;P&gt;You could also show the single files highlighting differences found with that search.&lt;BR /&gt;
Something like this (I cannot test it now):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=changemgmt source=config_file1 [index=changemgmt sourcetype=config_file | diff diffheader=tru]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try it.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 17:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243028#M72315</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-14T17:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243029#M72316</link>
      <description>&lt;P&gt;HI Giuseppe,&lt;/P&gt;

&lt;P&gt;I just tried this search below, it says &lt;CODE&gt;Unknown search command 'index'&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test_index source=/home/splunk/config/simple.conf [index="test_idex" sourcetype=conf | diff diffheader=true]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So then I tried this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test_index source=/home/splunk/config/simple.conf  [search index=test_index source=conf| diff diffheader=true]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it is not showing any results.&lt;BR /&gt;
&lt;CODE&gt;[subsearch]: command="diff", pos1=1 is out of bounds&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 17:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243029#M72316</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2016-10-14T17:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243030#M72317</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;BR /&gt;
when use the search index=changemgmt sourcetype=config_file  | diff diffheader=true | highlight +,-&lt;BR /&gt;
sometimes showing modified changes but sometimes not.do you have any idea why its behaving like this.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243030#M72317</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2016-11-08T16:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do event based comparison on file SAVE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243031#M72318</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;BR /&gt;
when use the search index=changemgmt sourcetype=config_file  | diff diffheader=true | highlight +,-&lt;BR /&gt;
sometimes showing modified changes but sometimes not.do you have any idea why its behaving like this.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-event-based-comparison-on-file-SAVE/m-p/243031#M72318</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2016-11-08T16:39:33Z</dc:date>
    </item>
  </channel>
</rss>

