# Enabling alerts for incessant logs

**URL:** <https://community.dynatrace.com/t/enabling-alerts-for-incessant-logs/41562>\
**Category:** Alerting\
**Tags:** problem-detection, problems-classic, logs\
**Created:** [September 7, 2023, 4:35pm UTC](https://community.dynatrace.com/t/enabling-alerts-for-incessant-logs/41562 "2023-09-07T16:35:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsreddy](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@nsreddy](https://community.dynatrace.com/u/nsreddy)\
**Post date:** [September 7, 2023, 4:35pm UTC](https://community.dynatrace.com/t/enabling-alerts-for-incessant-logs/41562/1 "2023-09-07T16:35:59Z")

</div>

We are seeing occasionally millions of logs are being injected by one log source in a 24 hour period. We would like to create an alert when any log source writes more than 100k logs in a 24 hour period. I have tried to figure this out with Dynatrace documentation and few forums, but without success. Anyone has done this in the past?

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [September 7, 2023, 6:54pm UTC](https://community.dynatrace.com/t/enabling-alerts-for-incessant-logs/41562/2 "2023-09-07T18:54:06Z")

</div>

**Create a Threshold Alert** : Once you have the custom log metric, you can set up an alerting profile in Dynatrace to trigger an alert when the metric exceeds 100,000 logs in a 24-hour period. Here’s a general outline of the steps:

a. Navigate to the alerting configuration section in your Dynatrace account.

b. Create a new alerting profile or use an existing one.

c. Configure a new alert condition. Choose the custom log metric you created in step 2 and set the threshold to 100,000 logs.

d. Define the alerting criteria, such as the evaluation interval (e.g., every 5 minutes) and the number of consecutive violations required to trigger an alert.

e. Configure alert notifications to be sent to the appropriate teams or individuals when the condition is met.
