Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..
507 views

Recommended setting for logs with daily rotation in files names by day of week

Hello,

I need help with correct settings for File Folder Follower FlexConnector. Logs are in folder in this names:

postgresql-Fri.log
postgresql-Mon.log
postgresql-Sat.log
postgresql-Sun.log
postgresql-Thu.log
postgresql-Tue.log
postgresql-Wed.log

and logging is done by rewriting the file according to the current day. 

In agent.properties I set value follows:

agents[0].foldertable.count=1
agents[0].foldertable[0].badsubfolder=bad
agents[0].foldertable[0].configfile=psql
agents[0].foldertable[0].configfolder=C\:\\ArcSight\\Connectors\\MultipleFolderFile\\current\\user\\agent\\\\flexagent\\
agents[0].foldertable[0].configtype=sdkrfilereader
agents[0].foldertable[0].delay=10000
agents[0].foldertable[0].encoding=
agents[0].foldertable[0].extractfieldnames=fileName
agents[0].foldertable[0].extractregex=(.*)
agents[0].foldertable[0].extractsource=File Path
agents[0].foldertable[0].fixedlinelength=-1
agents[0].foldertable[0].fixedlinelengthcontains=Fixed Number Of Characters
agents[0].foldertable[0].folder=\\\\10.10.10.10\\pgsql_log
agents[0].foldertable[0].followexternalrotation=true
agents[0].foldertable[0].maxretries=-1
agents[0].foldertable[0].minfilelenght=-1
agents[0].foldertable[0].mode=PersistFile
agents[0].foldertable[0].modeoptions=processed
agents[0].foldertable[0].monitoringinterval=30000
agents[0].foldertable[0].onrotation=None
agents[0].foldertable[0].onrotationoptions=processed
agents[0].foldertable[0].preservestate=true
agents[0].foldertable[0].processfoldersrecursively=false
agents[0].foldertable[0].processinglimit=256
agents[0].foldertable[0].processingmode=realtime
agents[0].foldertable[0].processingthreshold=3600000
agents[0].foldertable[0].processingtimeout=120000
agents[0].foldertable[0].retryinterval=1000
agents[0].foldertable[0].sleeptime=5000
agents[0].foldertable[0].startatend=false
agents[0].foldertable[0].triggerextension=.done
agents[0].foldertable[0].usealternaterotationdetection=true
agents[0].foldertable[0].usefieldextractor=true
agents[0].foldertable[0].usenonlockingwindowsfilereader=true
agents[0].foldertable[0].usetriggerfile=false
agents[0].foldertable[0].wildcard=postgresql-*

But if the connector processed one file, it doesn't want to process it in the next week. Any idea to change the parameters?

Regards,
Jan Sevela

Labels (1)
Tags (2)
0 Likes
4 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Hello,

 

please take a look on the following documentation https://h41382.www4.hpe.com/gfs-shared/downloads-262.pdf

It's old but for sure it will clarify a few things.

 

Daniel

0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Hello,

thank you for help, but there's nothing that can help me. I try a lot of combination in configuration file.

Anyone with any other idea?

Regards, Jan Sevela

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

I think your issue is PersistFile.

It will write the filename into a persisted.properties file. If the filename is there, then it wont read from it again. Maybe you can change to RenameFileIntheSameDirectory or DeleteFile. Other settings look ok.

 

0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Hello,

I do not want to rename or delete file, also i have not rights to do it.

Why there is problem with persist file?

Regards,
Jan Sevela

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.