# Log ingest rule for custom log source (source type; log path)

**URL:** <https://community.dynatrace.com/t/log-ingest-rule-for-custom-log-source-source-type-log-path/43541>\
**Category:** Logs\
**Tags:** log-configuration, log-monitoring-class\
**Created:** [January 10, 2024, 11:27am UTC](https://community.dynatrace.com/t/log-ingest-rule-for-custom-log-source-source-type-log-path/43541 "2024-01-10T11:27:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gbaudart](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Post date:** [January 10, 2024, 1:44pm UTC](https://community.dynatrace.com/t/log-ingest-rule-for-custom-log-source-source-type-log-path/43541/2 "2024-01-10T13:44:43Z")

</div>

Hi&nbsp;[@marina\_pollehn](https://community.dynatrace.com/user/2456)&nbsp;,

To add logs with a specific extension (eg: .txt).  
It is necessary to add a “Security Rule” to the machine.

Drop it to this path:

```markup
/var/lib/dynatrace/oneagent/agent/config/logmodule

```

The contents of the “securityRulesLoganalytics.json” file:

```markup
{
    "@version":"1.0.0",
    "allowed-log-paths-configuration":[
        {
            "directory-pattern":"d:\apps\signaturelogging\",
            "file-pattern":"*.txt",
            "action":"INCLUDE"
        }
    ]
}

```

Let me know if it works.

---

_[View the full topic](https://community.dynatrace.com/t/log-ingest-rule-for-custom-log-source-source-type-log-path/43541)._
