Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Dynatrace Tutorial: How to Enable Log Monitoring in Dynatrace

Step 1 – Check if Dynatrace Log Monitoring is enabled globally

  1. In the Dynatrace menu, go to Settings > Monitoring > Monitored technologies.
  2. Find Log Monitoring in the list of supported technologies, and select Edit (pencil icon).
  3. Check if Monitor Log Monitoring on every host option is enabled.
  4. Turn on Monitor Log Monitoring on every host.

Step 2 – Check if Dynatrace Log Monitoring is enabled on a host level:


# To Check if Log Monitoring is enabled or not
$ cd /opt/dynatrace/oneagent/agent/tools
$ ./oneagentctl --get-system-logs-access-enabled
$ ./oneagentctl --get-app-log-content-access

# To Enable Log Monitoring is enabled or not
$ ./oneagentctl --set-system-logs-access-enabled=true --restart-service
$ ./oneagentctl --set-app-log-content-access=true --restart-service
Code language: PHP (php)

Step 3 – Understanding OneAgent Changes

Dynatrace Log Monitoring uses OneAgent log module enabled by default with all OneAgent installations.

While Log Monitoring does not require any specific configuration, you can modify some of the options available for OneAgent log module.

You can adjust:

  • Enable and disable automatic log detection for different technologies.
  • Define default timezone in containers.
  • Enable defining the storgae configuration by a configuration file on the host.
  • Define specific location where the timestamp and severity occur in your incoming log data.
  • Define the maximum number of log group instances per entity.
  1. From the Dynatrace menu, select Settings > Log Monitoring > OneAgent settings.
  2. Adjust settings and Save changes.

Step 4 – Host-specific OneAgent settings for Log Monitoring

  1. In theย Dynatrace menu, go toย Hostsย and select your Linux host.
  2. On the host overview page, selectย Moreย (โ€ฆ) >ย Settingsย in the upper-right corner of the page.
  3. One theย Host settingsย page, selectย Log Monitoringย andย OneAgent settings.
  4. Adjust settings andย Save changes.

Step 5 – Enable using Configuration File [optional]

The configuration file located on each OneAgent is used to set three options. For security reasons, these options can only be set on the host level and are available only by creating a JSON file in a specific location:

  • Linux: /var/lib/dynatrace/oneagent/agent/config/
  • Windows: %PROGRAMDATA%\dynatrace\oneagent\agent\config\

The configuration file name must have theย jsonย extension; the file name is otherwise unrestricted.

By default, these options are set for the OneAgent log module to operate properly and to auto-detect log files on the specific host. Modifying this configuration file is not required.


{
  โ€œagent-configurationโ€:[
    {
      โ€œAppLogRemoteConfigurationโ€:true,
      โ€œAppLogContentAccessโ€:true,
      โ€œAppLogAutoDetectionโ€:true
    }
  ]
}Code language: JavaScript (javascript)

Step 6 – Add Log sources and storage

To include or exclude specific log sources from storage

  1. Selectย Settingsย from the Dynatrace navigation menu and in theย Log Monitoringย section, selectย Log sources and storage.
  2. Selectย Include all logs,ย Include the following logs, orย Exclude the following logsย from the list.
  3. Switch between tabs to select logs fromย Hosts perspectiveย or fromย Process groups perspective.
  4. Selectย Save changes.

Step 7 – Confirm Logs in Dynatrace

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Top 10 AI SEO Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI SEO tools have become indispensable for digital marketers, businesses, and content creators aiming to dominate search engine rankings. These tools leverage artificial intelligence…

Read More

Top 10 Product Lifecycle Management (PLM) Tools in 2026: Features, Pros, Cons & Comparison

Introduction Product Lifecycle Management (PLM) is a strategic approach to managing a productโ€™s journey from conception through design, manufacturing, and end-of-life. In 2026, PLM software has evolved…

Read More

Top 10 Patch Management Tools in 2026: Features, Pros, Cons & Comparison

Introduction: The Importance of Patch Management in 2026 In 2026, as cyber threats evolve and technology becomes more complex, patch management tools are critical for maintaining cybersecurity…

Read More

Top 10 Headless CMS Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, Headless Content Management Systems (CMS) have become the go-to solution for businesses seeking flexibility, scalability, and a modern approach to content management. Unlike traditional…

Read More

Top 10 AI Lead Scoring Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI lead scoring tools have become indispensable for B2B and B2C businesses aiming to optimize their sales pipelines. These tools leverage artificial intelligence to…

Read More

Top 10 AI Portfolio Optimization Tools in 2026: Features, Pros, Cons & Comparison

Introduction Investment management has always been about making smart choices at the right time. Traditionally, this required endless hours of research, manual calculations, and intuition. But in…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Vijay
Vijay
3 years ago

Need to understand custom log monitoring – How to montore specific error string/code from log file?

1
0
Would love your thoughts, please comment.x
()
x