# Send dictionary objects to logstash

**URL:** <https://discuss.elastic.co/t/send-dictionary-objects-to-logstash/143187>\
**Category:** Logstash\
**Created:** [August 6, 2018, 3:13pm UTC](https://discuss.elastic.co/t/send-dictionary-objects-to-logstash/143187 "2018-08-06T15:13:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriela\_Diana\_Stoic](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gabriela\_Diana\_Stoic](https://discuss.elastic.co/u/Gabriela_Diana_Stoic)\
**Post date:** [August 6, 2018, 3:13pm UTC](https://discuss.elastic.co/t/send-dictionary-objects-to-logstash/143187/1 "2018-08-06T15:13:56Z")

</div>

Hi,

I have a file that is continuously populated with events from a server. The events have the following format:

{"Time": "2018-08-06 16:46:01", "Severity": "Minor", "Equipment": "Server", "State": "Unacknowledged Event", "EventName": "Data Loss", "Location": "Subrack 1, Slot 10", "NeName": "TestNode"

Each event is written on a new line, no delimiter between events.  
I don't know what approach to use to send this kind of data to Logstash. Initially I was thinking to use json codec, but my data format isn't exactly json.

Thanks,  
Gabriela

---

<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:** [August 6, 2018, 3:23pm UTC](https://discuss.elastic.co/t/send-dictionary-objects-to-logstash/143187/2 "2018-08-06T15:23:37Z")

</div>

I would use a mutate+gsub to append the closing } to the line, then use a json filter (not codec) to parse it.

---

<div class="post-metadata">

**Author:** ![Gabriela\_Diana\_Stoic](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gabriela\_Diana\_Stoic](https://discuss.elastic.co/u/Gabriela_Diana_Stoic)\
**Post date:** [August 8, 2018, 12:24pm UTC](https://discuss.elastic.co/t/send-dictionary-objects-to-logstash/143187/3 "2018-08-08T12:24:17Z")

</div>

> [@Badger](#):
>
> e, then use a json filter (not codec) to prase i

Hi,

I worked. Thanks a lot!

---

<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 5, 2018, 12:25pm UTC](https://discuss.elastic.co/t/send-dictionary-objects-to-logstash/143187/4 "2018-09-05T12:25:27Z")

</div>

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