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.
Each OneAgent provides a ruxitagentloganalytics.conf
file where you can set configuration options.
If your OneAgent installation, freshly installed or upgraded, does not have the ruxitagentloganalytics.conf
file, use ruxitagentloganalytics.conf.template
as a template and create your own ruxitagentloganalytics.conf
file. Next, copy the ruxitagentloganalytics.conf
file to the following directory:
/var/lib/dynatrace/oneagent/agent/config/
%PROGRAMDATA%\dynatrace\oneagent\agent\config\
AppLogContentAccess
false
, the log file will be displayed in the user interface, but the content won't be accessible. Note that the OneAgent will still auto-detect log files unless the flag AppLogAutoDetection
is set to false
.AppLogContentAccess=false
AppLogRemoteConfiguration
false
, it won't be possible to add logs manually using the settings interface.AppLogRemoteConfiguration=true
AppLogAutoDetection
false
, logs won't be auto-detected.AppLogAutoDetection=true
FilesInGroup
FilesInGroup=[process_group_ID], [warning_number_of_files], [maximum_number_of_files]
FilesInGroup=0x0, 150, 200
EntryFilter
EntryFilter=[process_group_ID], [log_path], [LAQL]
EntryFilter=0x0,Windows Application Log,INFO======EntryFilter=0x201744FC09941B85,%PROGRAMDATA%\CrashPlan\log\service.log.#,not INFO======
LogEntryPrefix
LogEntryPrefix=/var/ossec/logs/alerts/alerts.log,** Alert
MainLoopInterval
Sets the time interval (in seconds) of OneAgent log operations. Defines how often the OneAgent will detect, analyze, and store logs.
By decreasing this value:
LogAgent
then requires more CPU cycles and performs more disk operations.By increasing this value:
MainLoopInterval
seconds.MainLoopInterval=60
AutomaticFile
Defines which files will be included in or excluded from the log analysis and storage.
AutomaticFile=Path, Include|Exclude
You can use the wildcard (*
) to indicate specify all directories and subdirectories.
For example:
AutomaticFile= */log/*/*, Exclude
Configuration AutomaticFile= */log/*/*, Exclude
would exclude the /dir1/dir2/log/dir3/test1.log
file, but it would NOT exclude the /dir1/dir2/log/test2.log
file. In this example, the test2.log
file is not located at the directory depth indicated in the configuration. As a result, the condition set in the configuration is not met.
Configuration
Result
AutomaticFile= /log/*/*, Exclude
/dir1/dir2/log/dir3/test.log
will NOT be excluded/dir1/dir2/log/test.log
will NOT be excluded/log/test.log
will NOT be excluded/log/dir3/test.log
will be excludedPath
Configuration
/var/log/
AutomaticFile=/var/log/*, Include
/var/log/
AutomaticFile=/var/log/*, Exclude
Path
Configuration
c:\problemdir\file.log
AutomaticFile = /problemdir/*, Exclude
d:\nightly\sub\r16.0.0_sp12_nbld_win_64_daily.log
AutomaticFile= /nightly/ * / *, Exclude
JSONTimestampFieldNames
JSONTimestampFieldNames=time,timestamp
The following properties are still available, but they are deprecated and replaced by the AutomaticFile
property in version 1.155.
AllowedLogs
AllowedLogs=*[.\-_]log[.\-_]*AllowedLogs=*[.\-_]logAllowedLogs=catalina.out
AllowedDirLogs
AllowedDirLogs=logAllowedDirLogs=logs
LogSearchLevel
AllowedDirLogs
property will be added for monitoring only if found on the level defined in LogSearchLevel
or below.LogSearchLevel=2
AllowedDirPrefixes
AllowedDirPrefixes
, it will be auto-detected for monitoring. You can add multiple directory name prefixes for allowing additional directories.AllowedDirPrefixes=/var/log/