SumoLogic / sumologic-collector-chef-cookbook

Chef Cookbook for installing and configuring the SumoLogic collector for the Sumo Logic service
Other
30 stars 90 forks source link

What happens when the log file is rotated ? #82

Closed dorongutman closed 8 years ago

dorongutman commented 8 years ago

Do I need to restart the collector or send it a specific command/signal so it'll pick up the new file or does it detect it automatically ?

duchatran commented 8 years ago

@dorongutman: Please refer to this help (under How does Sumo Logic handle log file rotation) for more specifics: http://help.sumologic.com/Send_Data/Sources/Local_File_Source

Another key thing is the file path provided must match the rotated file pattern (otherwise collector won't even pickup the rotated files). For example, to continue the example, the pattern should be *.log*