Add log files manually v1
You are viewing documentation for Log Monitoring v1. Dynatrace Log Monitoring v1, is considered a legacy solution.
Log Monitoring v1 will reach the end of life and will be switched off in November 2023.
SaaS environments will be automatically upgraded to LMA or LMC.
We strongly encourage you to switch to the latest Dynatrace Log Monitoring version.
If you are currently using Dynatrace SaaS, upgrade to the latest version of Dynatrace log monitoring.
Dynatrace allows you to add specific log files manually in instances where the files aren't discovered automatically. You only need to add one log path at the process-group level to cover all processes within the group across all monitored hosts.
To manually add a log file to a process group
- Go to Hosts or Hosts Classic (latest Dynatrace).
- Select a host.
- From the Processes section of the page, select the process for which you want to add a new log file.
- In the Log files section of the page, click the Configure more log files link.
Alternatively, look for the No log files section if no log files are associated with the process. - On the Process group settings page, select the Log monitoring tab.
- Click Add new log file for monitoring.
- Type the file path of the log file to be associated with this process group. Only absolute paths are allowed.
- Click Save.
Considerations for adding log files manually
Dynatrace supports log files that are at least 0.5 KBs in size AND were updated (written to) in the last 7 days AND meet at least one of the following criteria:
-
Files are located in a directory called
log
orlogs
(limited up to 2 levels) or/var/log/
.OK:
C:\Program Files\MyApp\logs\aaa.txt
/var/log/app/other/out/bbb.out
NOT OK:
C:\Program Files\MyApp\logs\other\out\ccc.txt
-
Files have the extension .log or .evt (for example, apache.log).
-
File names end with
[.-_]log
(for example,apache_log.txt
,apache.log.txt
, orapache-log.txt
).
Additionally:
- Only absolute file paths are supported:
- Unix: Path must begin with
/
.
Paths within the following folders are not supported:
etcbootprocdevbinsbinlibusr.ssh- Windows: Path must begin with drive letter (for example,
C:\
).
Paths within the following folders are not supported:
windowswinnt - Unix: Path must begin with
- Manually added log files affect all processes on all hosts belonging to the configured process group.
- To add log files located in a container:
- Configure the container so that the log file within the container is written to a disk.
- Point the OneAgent to this location by defining the absolute path to where the container is to write the log files.
-
You can add a set of files in the folder by using a wildcard.
For example,/var/log/apache/access-*.log
will report all files separately. -
You can add numbered rotating-log filesets by using the hash character (#).
For example,/var/log/error-#.log
will matcherror-1.log
,error-2.log
, etc., and report the fileset as a singleerror-#.log
file. -
You can globally disable the option to configure custom log files by setting:
AppLogRemoteConfiguration = false
On Linux:
/var/lib/dynatrace/oneagent/agent/config/ruxitagentloganalytics.conf
On Windows:
%PROGRAMDATA%\dynatrace\oneagent\agent\config\ruxitagentloganalytics.conf