MinimSecure / unum-sdk

Unum agent source code, tools, and documentation
https://www.minim.co
Apache License 2.0
30 stars 15 forks source link

Persistent logs support. #85

Closed venkatchimata closed 3 years ago

venkatchimata commented 3 years ago

This solution does n't need any platform specific changes.

Agent checks the file unum_prefix_file.txt under persistent directory and if it exists reads its contents. This file contains the prefix (persistent storage directories). When this file unum_prefix_file.txt exists, the agents prefixes all the log files (example. /var/log/unum.log etc) with prefixes and creates appropriate directories. And all the log files will be created on persistent storage. Names for console and stdout are untouched based on the flags and filenames.