
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Folder Reader Issue
Hi,
In our environment, we have requirement to read multiple files from different folders in one server and each folders having two type of log files (which are in .log format and .gz format). The realtime log is writing to “.log” file and every one hour the” .log file” is compressed to “.gz “ format where the “.log” file persist in same format (without change in name of file [“eg:- sample.log”] but the size will be reduced to zero by empting the content to compression and the compressed file is created as “sample.2015-04-16_22.gz”)
For the above scenario, I have tried below parameters on agent.propertise but it’s not collecting log from the file.
agents[0].foldertable[0].preservestate=true
agents[0].foldertable[0].followexternalrotation=true
agents[0].foldertable[0].startatend=true
agents[0].foldertable[0].mode=PersistFile
agents[0].foldertable[0].wildcard=*.log
and tried the alternaterotationdetect=true
Thanks
Renjith

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Renjith,
Did u see any File accessed message or any errors on the log file. Is the log file is having read permission, sometimes it will be locked the application which is updating the log followed by log rotation and compression.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content