Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo logrotate --debug /etc/logrotate.d/trifacta-logrotate.conf

Configure log format

You can configure the fields and format of them for the following log files:

ServiceApplicable Log FilesParameter
VFS Servicevfs-service.access.logvfs-service.loggerOptions.format
WebAppwebapp.access.logwebapp.loggerOptions.format


Info

NOTE: This field configuration applies only the log files listed above.

For each of the above parameters, you can use a token-based method of configuring the fields to include in a log entry. You can modify:

  • The sequence of fields
  • The fields to include
  • For some fields, you can specify specific subsets of the available information.

Entries are specified as space-delimited fields, each of which begins with a colon:

Code Block
:field1 :field2 :field3

For more information on these log format options, see https://github.com/expressjs/morgan#tokens.

Configure output format

By default, logs are in flat text format and exported as .log files. 

Some loggers enable output in JSON format.

Info

NOTE: JSON format is not recommended for

D s product
. You may not be able to download logs in JSON format.

To enable JSON format, locate the appropriate parameter, where the wildcard below represents the service. Set the value to true:

Code Block
"*.loggerOptions.json": true,

Save your changes and restart the platform or service.

More examples are listed below.

WebApp

The WebApp manages loading of data from the supported connections into the front-end web interface.

...