You may also wish to rename your log file(s) before they are uploaded to the DataSet servers. For example, your server might have a log file in the location /var/some_really_long_path/mylog.log, but you might want to give it a more concise and searchable name in DataSet , e.g., /scalyr/access.log
You accomplish this using the rename_logfile option. rename_logfile can be a string (text), or a JSON object. It specifies the new name to use for the log file when uploading it to DataSet. You can set this name using the predefined variables described below.
Here is an example configuration:
logs: [ { path: "/var/some_really_long_path/mylog.log", rename_logfile: "/scalyr/access.log" } ]
You can read more advanced configuration options and about variables here
Comments
0 comments
Please sign in to leave a comment.