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 logsInclude 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 a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

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

Introduction Artificial Intelligence is powering everything from personalized marketing to autonomous systems. But with great power comes greater responsibility—especially when it comes to privacy compliance. In 2026,…

Read More

Top 10 Banner Design Tools in 2026: Features, Pros, Cons & Comparison

Introduction Banner design is an essential part of digital marketing, whether you’re creating ads for social media, your website, or email campaigns. In 2026, as businesses continue…

Read More

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

Introduction In 2026, AI background removal tools have become essential for photographers, e-commerce sellers, marketers, and content creators who need polished, professional visuals without the hassle of…

Read More

5 Elements To Craft A Stand-Out Resume For Web Developers

In today’s digital era, your resume isn’t just a document — it’s a reflection of your technical savvy. For ambitious web developers like You, mastering the art…

Read More

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

Introduction In 2026, AI infographic creators have become essential tools for businesses, marketers, educators, and content creators who need to transform complex data into visually compelling stories….

Read More

Top 11 AI Personalized Learning Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI personalized learning tools have transformed education and training, tailoring content to individual learner needs with unprecedented precision. These tools leverage machine learning, natural…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
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