# Extract the message from an Alert FileBeat

**URL:** <https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475>\
**Category:** Beats\
**Created:** [May 31, 2021, 8:27am UTC](https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475 "2021-05-31T08:27:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Dylan\_McAloo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_dylan_mcaloo/32/80928_2.png) [@Michael\_Dylan\_McAloo](https://discuss.elastic.co/u/Michael_Dylan_McAloo)\
**Post date:** [May 31, 2021, 8:27am UTC](https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475/1 "2021-05-31T08:27:34Z")

</div>

I need help because I don't know how to select only the part of the message where it says "NMAP ping sweep Scan".

```auto
05/28-10:30:30:52.840974 [**] [1:10000004:1] "NMAP ping sweep Scan" [**] [Priority: 0] {TCP}

```

I got this:

```auto
 processors:
    - dissect:
        tokenizer: ' "%{service.message}" '
        filed: "message"
        target_prefix: "message"

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 31, 2021, 9:02am UTC](https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475/2 "2021-05-31T09:02:18Z")

</div>

This Beats Playground allows to play around with beats processors and extract the data, hope t hat helps to get started

[https://andrewkroh.github.io/beats-playground/](https://andrewkroh.github.io/beats-playground/)

---

<div class="post-metadata">

**Author:** ![Michael\_Dylan\_McAloo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_dylan_mcaloo/32/80928_2.png) [@Michael\_Dylan\_McAloo](https://discuss.elastic.co/u/Michael_Dylan_McAloo)\
**Post date:** [May 31, 2021, 9:46am UTC](https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475/3 "2021-05-31T09:46:40Z")

</div>

Ohhh, thank you very much 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_Dylan\_McAloo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_dylan_mcaloo/32/80928_2.png) [@Michael\_Dylan\_McAloo](https://discuss.elastic.co/u/Michael_Dylan_McAloo)\
**Post date:** [May 31, 2021, 10:02am UTC](https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475/4 "2021-05-31T10:02:35Z")

</div>

I have a question, what is the reason for this part of the code?

```auto
layouts:
      - 2006-01-02T15:04:05.999999999Z07:00

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 31, 2021, 11:17am UTC](https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475/5 "2021-05-31T11:17:15Z")

</div>

See [Timestamp | Filebeat Reference [7.13] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/7.13/processor-timestamp.html) - a list of timestamps that should be able to parse.. this one aims at nanosecond resolution and time zones I would guess

---

<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:** [June 28, 2021, 11:18am UTC](https://discuss.elastic.co/t/extract-the-message-from-an-alert-filebeat/274475/6 "2021-06-28T11:18:10Z")

</div>

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