# How to create a Security Rule (SIEM) for Custom Logs Integration

**URL:** <https://discuss.elastic.co/t/how-to-create-a-security-rule-siem-for-custom-logs-integration/339327>\
**Category:** Elastic Security\
**Created:** [July 26, 2023, 3:51pm UTC](https://discuss.elastic.co/t/how-to-create-a-security-rule-siem-for-custom-logs-integration/339327 "2023-07-26T15:51:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishant\_Chauhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nishant_chauhan/32/122587_2.png) [@Nishant\_Chauhan](https://discuss.elastic.co/u/Nishant_Chauhan)\
**Post date:** [July 26, 2023, 3:51pm UTC](https://discuss.elastic.co/t/how-to-create-a-security-rule-siem-for-custom-logs-integration/339327/1 "2023-07-26T15:51:29Z")

</div>

Hi Team,

I have setup Custom Logs Integration and able to create rules for observability. but rules are not working for Security dashboard.

sample log

```auto
2023-07-26T08:05:25.661Z ERRO 1 --- [nio-8080-exec-3] c.i.c.b.c.HealthCheckController : checkHealth() Returning health status

```

pattern

```auto
[
  {
    "dissect": {
      "field": "message",
      "pattern": "%{@timestamp} %{log.level} %{number} --- [%{thread_name}] %{class} : %{message}"
    }
  },
  {
    "date": {
      "field": "@timestamp",
      "formats": [
        "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
      ]
    }
  }
]

```

Any documentation or if you can guide me what needs to be done.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 23, 2023, 3:51pm UTC](https://discuss.elastic.co/t/how-to-create-a-security-rule-siem-for-custom-logs-integration/339327/2 "2023-08-23T15:51:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
