# Inserting Custom Logs Into Siem

**URL:** <https://discuss.elastic.co/t/inserting-custom-logs-into-siem/340092>\
**Category:** SIEM\
**Created:** [August 4, 2023, 3:35am UTC](https://discuss.elastic.co/t/inserting-custom-logs-into-siem/340092 "2023-08-04T03:35:16Z")\
**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:** [August 4, 2023, 3:35am UTC](https://discuss.elastic.co/t/inserting-custom-logs-into-siem/340092/1 "2023-08-04T03:35:16Z")

</div>

Hi @cwurm,

Referring to this topic - [Inserting Custom Logs Into Siem](https://discuss.elastic.co/t/inserting-custom-logs-into-siem/190093)

I am using Custom Log Integration, using everything as default , I only added custom pattern for below logs.

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

```

and below pattern in pipeline

```auto
[
  {
    "dissect": {
      "field": "message",
      "pattern": "%{@timestamp} %{log.level} %{number} --- [%{thread_name}] %{classs} : %{message}"
    }
  },
  {
    "date": {
      "field": "@timestamp",
      "formats": [
        "ISO8601"
      ]
    }
  }
]

```

I can see all the fields are getting populated in Discover Tab.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f37ca40ca8ce1f64512895a0b706654734a8eb5c.jpeg)

However when I create Rules in Security/SIEM Dashboard using this Data View / Fields. they do no work.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b5de9e758f45b23938225bf85c03a4cac209a0f7.png)

I also noticed If i do not use @timestamp in pattern it works for SIEM, however in that way logs are not captured properly.

---

<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:** [September 1, 2023, 3:35am UTC](https://discuss.elastic.co/t/inserting-custom-logs-into-siem/340092/2 "2023-09-01T03:35:17Z")

</div>

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