# Unable to read two json

**URL:** <https://discuss.elastic.co/t/unable-to-read-two-json/289963>\
**Category:** Logstash\
**Created:** [November 23, 2021, 3:34pm UTC](https://discuss.elastic.co/t/unable-to-read-two-json/289963 "2021-11-23T15:34:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fosco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fosco/32/94297_2.png) [@Fosco](https://discuss.elastic.co/u/Fosco)\
**Post date:** [November 23, 2021, 3:34pm UTC](https://discuss.elastic.co/t/unable-to-read-two-json/289963/1 "2021-11-23T15:34:40Z")

</div>

Hello, I have a python file that is executed by logstash and which prints a json composed of two different data sources, the problem is that logstash only reads the first part. I tried to change the order and nothing changes, it is always the first part taken into account  
(One of the part contains the field "Type")

```auto
filter {

	if ([Type]){
	  	SOMETHING
	} else {
		SOMETHING
	}
}

```

Thanks

---

<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:** [December 21, 2021, 3:35pm UTC](https://discuss.elastic.co/t/unable-to-read-two-json/289963/2 "2021-12-21T15:35:39Z")

</div>

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