# Has anyone tried to load edifact or x12 messages

**URL:** <https://discuss.elastic.co/t/has-anyone-tried-to-load-edifact-or-x12-messages/273689>\
**Category:** Logstash\
**Created:** [May 21, 2021, 5:07pm UTC](https://discuss.elastic.co/t/has-anyone-tried-to-load-edifact-or-x12-messages/273689 "2021-05-21T17:07:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bugsbee](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@Bugsbee](https://discuss.elastic.co/u/Bugsbee)\
**Post date:** [May 21, 2021, 5:07pm UTC](https://discuss.elastic.co/t/has-anyone-tried-to-load-edifact-or-x12-messages/273689/1 "2021-05-21T17:07:54Z")

</div>

hello all ,  
has anyone tried to load x12 or edifact message using logstash/kibana.

basically my requirement is simple.. I have the x12 or edifact messaged saved in a directory.

i just need to pull that file and load the message in kibana. I dont need to parse or whatsover in the file.

1. Just pull it from a directory in the my file is "C:/edifact/\*edu"  
file{  
type =\> "edi"  
path =\> "C:/edifact/\*edu"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}

2. Heres an example of an x12 file looked like.  
AK1_XY_1234~  
AK2_123_XYX~  
AK5_A~  
AK2_810\*9999~

3. I just want the entire data pulled from the directory and reflected in message example below.  
and i dont need need to parse.

![sample-screenshot](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2ee39c08a7040a10bc1136bd0c646f27f06fdd1f.jpeg)

1. what should be the filter for such kind of format.  
i tried to not put anything in the folder but what happened is that in ELK for each line for the file, it created me one entry in ELK

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 21, 2021, 5:32pm UTC](https://discuss.elastic.co/t/has-anyone-tried-to-load-edifact-or-x12-messages/273689/2 "2021-05-21T17:32:24Z")

</div>

If you want an event to contain multiple lines from the file then use a multiline codec.

---

<div class="post-metadata">

**Author:** ![Bugsbee](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@Bugsbee](https://discuss.elastic.co/u/Bugsbee)\
**Post date:** [May 24, 2021, 3:56pm UTC](https://discuss.elastic.co/t/has-anyone-tried-to-load-edifact-or-x12-messages/273689/3 "2021-05-24T15:56:37Z")

</div>

thank you badger..I will try. appreciate.

---

<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 21, 2021, 3:56pm UTC](https://discuss.elastic.co/t/has-anyone-tried-to-load-edifact-or-x12-messages/273689/4 "2021-06-21T15:56:47Z")

</div>

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