<?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: Monitoring the delta changes ( new changes ) in an error logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65957#M13239</link>
    <description>&lt;P&gt;Thanks kris! this was very helpful&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2013 13:46:24 GMT</pubDate>
    <dc:creator>royimad</dc:creator>
    <dc:date>2013-03-21T13:46:24Z</dc:date>
    <item>
      <title>Monitoring the delta changes ( new changes ) in an error logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65953#M13235</link>
      <description>&lt;P&gt;Hello Splunk Expert,&lt;/P&gt;

&lt;P&gt;The situation:&lt;BR /&gt;
I have a logs file around 10 MB generated from web application errors. this log file contain the sequence of errors that appeared on online system,each time an errors appeared on the systems a number of lines is added to the end of the file, the structure of each event is as following &lt;EVENT time=""&gt; followed by &amp;lt; Severity &amp;gt; followed by a java stack trace.&lt;/EVENT&gt;&lt;/P&gt;

&lt;P&gt;The structure of the file at time c:&lt;/P&gt;

&lt;P&gt;line 1:event a x ---&lt;BR /&gt;
line 4:event b y ---&lt;BR /&gt;
last line:event c z ---&lt;/P&gt;

&lt;P&gt;The structure of the file at time d could be:&lt;BR /&gt;
line 4:event b y ---&lt;BR /&gt;
line 5:event c z ---&lt;BR /&gt;
last line: event d d ---&lt;BR /&gt;
the event a will be rotated to another file only if it reach 10 MB&lt;/P&gt;

&lt;P&gt;or the log file could be simply &lt;BR /&gt;
line 1:event a x --- &lt;BR /&gt;
line 4:event b y ---&lt;BR /&gt;
line 5:event c z ---&lt;BR /&gt;
last line: event d d ---&lt;/P&gt;

&lt;P&gt;The requirement is to automate the monitoring of this file into splunk.&lt;/P&gt;

&lt;P&gt;The two solution i'm intended to implement are: &lt;BR /&gt;
1-First Solution is to send the delta changes only to splunk server by writing some shell script do get the delta changes each 5 minutes ( the modification that happened to the files in the last 5 minutes )&lt;BR /&gt;
2-Second Solution is to send via ftp the entire file to splunk instance and let splunk monitor the changes.&lt;/P&gt;

&lt;P&gt;Note that: using universal forwarder is not an option - i have no permission to open a port 9997 or any other port for the forwarder on the production environment but i have the possibility of ftp this file from production server to splunk instance&lt;/P&gt;

&lt;P&gt;The problem:&lt;BR /&gt;
My preferred solution is the second but i don't know how to monitor only the delta changes in that file, how splunk will indexes only the new events and detect those lines without having any duplication? &lt;/P&gt;

&lt;P&gt;All idea are welcome and appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Roy&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 12:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65953#M13235</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-03-19T12:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the delta changes ( new changes ) in an error logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65954#M13236</link>
      <description>&lt;P&gt;I think that you should try to;&lt;BR /&gt;
a) have a forwarder on the machine. Even if it's a production machine, there are bound to be other agents running on it (antivirus, backup, nagios, scom etc etc) so you have a case for arguing there. &lt;BR /&gt;
b) as an alternative, try to reconfigure so that the log file is rotated every X minutes, and FTP it away to a splunk machine (forwarder or indexer) that can process it.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65954#M13236</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-03-19T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the delta changes ( new changes ) in an error logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65955#M13237</link>
      <description>&lt;P&gt;a)is not an option for me at the moment - otherwise i need to proof of security concept ( encryption , ssl , etc.)&lt;/P&gt;

&lt;P&gt;b) Rotate every X minutes this could be part of the first solution. How about monitoring the delta changes from splunk directly? do you think this could be done?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 14:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65955#M13237</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-03-19T14:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the delta changes ( new changes ) in an error logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65956#M13238</link>
      <description>&lt;P&gt;well, hmm... if you could make the file transfer append to an existing file... and only start on a new destination file when the source file has been rotated... but that sounds like there are things that could go wrong, and then the blame-shifting would start.&lt;/P&gt;

&lt;P&gt;As for encryption, ssl, etc, there is built-in support for these concepts. You'll have to generate new ssl-keys and configure splunk to use them. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/Security/ConfigureSplunkforwardingtousesignedcertificates"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/Security/ConfigureSplunkforwardingtousesignedcertificates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 14:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65956#M13238</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-03-19T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the delta changes ( new changes ) in an error logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65957#M13239</link>
      <description>&lt;P&gt;Thanks kris! this was very helpful&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 13:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-the-delta-changes-new-changes-in-an-error-logs/m-p/65957#M13239</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-03-21T13:46:24Z</dc:date>
    </item>
  </channel>
</rss>

