# Find unusual pattern

**URL:** <https://discuss.elastic.co/t/find-unusual-pattern/337145>\
**Category:** Elasticsearch\
**Created:** [June 29, 2023, 4:41am UTC](https://discuss.elastic.co/t/find-unusual-pattern/337145 "2023-06-29T04:41:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [June 29, 2023, 4:41am UTC](https://discuss.elastic.co/t/find-unusual-pattern/337145/1 "2023-06-29T04:41:47Z")

</div>

Need to find unusual send and receive patterns in huge log file, here is the example:

00:00:01.000 S-001 \<

00:00:01.000 S-002 \<

00:00:01.000 S-003 \<

00:00:01.000 S-004 \<

00:00:01.000 S-005

00:00:01.000 R-005

00:00:01.000 S-006

00:00:01.000 R-006

00:00:01.000 S-007

00:00:01.000 S-008

00:00:01.000 R-008

00:00:01.000 R-007

00:00:01.000 S-009

00:00:01.000 S-010 \<

00:00:01.000 S-011 \<

00:00:01.000 S-012 \<

00:00:01.000 S-013 \<

00:00:01.000 R-009 \<

00:00:01.000 R-010 \<

00:00:01.000 R-011 \<

00:00:01.000 R-012 \<

00:00:01.000 R-013 \<

00:00:01.000 S-014

00:00:01.000 R-014

00:00:01.000 R-001 \<

00:00:01.000 R-002 \<

00:00:01.000 R-003 \<

00:00:01.000 R-004 \<

line show with \< need to detect and show on chart.

FYI1: Duration is not good way to find them because some of them occurred at the exact time.

FYI2: ids are different not in order as i write above like this 98734543 or 53434444

any idea?

Thanks,

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 29, 2023, 12:34pm UTC](https://discuss.elastic.co/t/find-unusual-pattern/337145/2 "2023-06-29T12:34:13Z")

</div>

Hi @Indeed2000,

How are you ingesting these logs files into Elasticsearch? Can you explain what kind of metrics you want to show on your chat in relation to this log pattern?

---

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [June 29, 2023, 1:37pm UTC](https://discuss.elastic.co/t/find-unusual-pattern/337145/3 "2023-06-29T13:37:12Z")

</div>

@carly.richmond as i mentioned it is log file, and simply use input file.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 29, 2023, 1:41pm UTC](https://discuss.elastic.co/t/find-unusual-pattern/337145/4 "2023-06-29T13:41:19Z")

</div>

How are you inputing the file into Elasticsearch? Are you using Logstash for example? Or simply [uploading a file](https://www.elastic.co/guide/en/kibana/current/connect-to-elasticsearch.html#upload-data-kibana)?

---

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [July 1, 2023, 4:26pm UTC](https://discuss.elastic.co/t/find-unusual-pattern/337145/5 "2023-07-01T16:26:41Z")

</div>

@carly.richmond logstash, input\_file

---

<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:** [July 29, 2023, 4:27pm UTC](https://discuss.elastic.co/t/find-unusual-pattern/337145/6 "2023-07-29T16:27:02Z")

</div>

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