# Test multiline pattern - random order

**URL:** <https://discuss.elastic.co/t/test-multiline-pattern-random-order/312275>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 17, 2022, 12:00pm UTC](https://discuss.elastic.co/t/test-multiline-pattern-random-order/312275 "2022-08-17T12:00:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkuser1234](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@elkuser1234](https://discuss.elastic.co/u/elkuser1234)\
**Post date:** [August 17, 2022, 12:00pm UTC](https://discuss.elastic.co/t/test-multiline-pattern-random-order/312275/1 "2022-08-17T12:00:01Z")

</div>

Hi  
I have elk stack 8.3

I need to test multiline patterns.  
I do it so that I write a given part of the log to the .txt file, and then rewrite it to the log file monitored by filebeat

example:

```auto
[xxx @ xxx logs] # cat test_pattern.txt
1
2
3
4
5
6
7
8
9

```

next  
`[xxx @ xxxlogs] # cat test_pattern.txt >> log_file.log`

Unfortunately, it gets to the elasticsearch log in a random order and now I have a problem how to test my patterns.

![Screenshot 2022-08-17 at 13-50-24 Discover - Elastic](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fc4f694ffd81abba8c675cef1912b32dfd97406b.png)

Please help.  
Where and how can i test my patterns?

---

<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 14, 2022, 2:00pm UTC](https://discuss.elastic.co/t/test-multiline-pattern-random-order/312275/2 "2022-09-14T14:00:27Z")

</div>

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