Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Added fileid in all the events and also added support of last_record_location #41

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nisargshah-crest
Copy link

@nisargshah-crest nisargshah-crest commented Dec 25, 2017

Changes contains two parts:
(1) Added the fileid in the events where fileid is the unique id of each fw.log
links:

(2) Added code to support last_record_location along with the read cursor file.

Description about last_record_location:

Support of the last_record_location along with the cursorfile. We should able to pass the last_record_location as commandline argument. last_record_location would be like

{fileid:loc}
i.e.
{123333:3232}
. We can use this parameter to get the events from the particular location. So if we pass the commandline argument last_record_location, We will use the argument instead of the cursor file.

(1) If current fileid matches with the --last_record_location fileid then only we will use the loc to get the next events from the same fileid.
(2) If current fileid will not match with the stored fileid then we will read the whole fw.log file.

(3) Command line arguments along with fw1-loggrabber.conf and lea.conf

@nisargshah-crest nisargshah-crest changed the title Added fileid in all the fields Added fileid in all the events and also added support of last_record_location Jan 3, 2018
…figurations through command line. This upgradation will make the fw1-loggrabber.conf and lea.conf file as optional. Hence if the configuration is provided through command line, then it will be considered, else corresponding configuration value will be taken from the conf file if present
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants