The file system log appender stores received logs into the local file system of the Operations server. This log appender may be used for test purposes or in pair with tools like Flume and others. Logs are stored in files under the
/$logsRootPath/tenant_$tenantId/application_$applicationId folder, where
logsRootPath is a configuration parameter,
applicationId are ids of the current tenant and the application respectively. Access to the logs is controlled via Linux file system permissions.
You can log in to the Operations server host and browse logs using the kaa_log_user_$applicationToken user name and the pubic key which is created as a part of the configuration.
The easiest way to create a file system log appender for your application is by using Admin UI.
It is also possible to create a file system log appender for your application by using REST API. The following example illustrates how to provision the file system log appender via REST API.
The file system log appender configuration should match the following Avro schema.
The following configuration example matches the previous schema.
The following REST API call example illustrates how to create a new file system log appender.