# JDBC\_Streaming plugin issue

**URL:** <https://discuss.elastic.co/t/jdbc-streaming-plugin-issue/260149>\
**Category:** Logstash\
**Created:** [January 5, 2021, 2:29am UTC](https://discuss.elastic.co/t/jdbc-streaming-plugin-issue/260149 "2021-01-05T02:29:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashok\_Botcha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashok_botcha/32/81689_2.png) [@Ashok\_Botcha](https://discuss.elastic.co/u/Ashok_Botcha)\
**Post date:** [January 5, 2021, 2:29am UTC](https://discuss.elastic.co/t/jdbc-streaming-plugin-issue/260149/1 "2021-01-05T02:29:26Z")

</div>

Hi,

I am trying below sample logstash config, Output also pasted below. data related to table C not coming inside B, Can you suggest if anything wrong with config ?

## CONFIG:

`input {  
jdbc {  
.......  
statement =\> "SELECT a.A\_ID as A\_ID,A.A\_COLUMN1 FROM a;"

}

}

filter{

```
 jdbc_streaming {
		.....	
		statement => "SELECT B.B_ID as B_ID,B.B_COLUMN1 FROM B WHERE B.A_ID=1;"
		......
		target => "B"
}

 jdbc_streaming {
		......
		statement => "SELECT c.C_ID as C_ID,c.C_COLUMN1 FROM C WHERE c.B_ID=11;"
		.........
		target => "[B][C]"
}

```

}

output {  
# Output to the console  
stdout {  
codec =\> "rubydebug"  
}

```
# Output to elastic search
elasticsearch {
	document_id => "%{A_ID}"
	index => "abc"
	codec => "json"
	hosts => ["localhost:9200"]

```

}

}  
`

## OUTPUT:

{  
"@version" =\> "1",  
"a\_id" =\> 1,  
"a\_column1" =\> "A\_DATA",  
"@timestamp" =\> 2021-01-05T02:21:16.704Z,  
"B" =\> [  
[0] {  
"b\_column1" =\> "B\_DATA1",  
"b\_id" =\> 11  
}  
]  
}

---

<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:** [February 2, 2021, 2:29am UTC](https://discuss.elastic.co/t/jdbc-streaming-plugin-issue/260149/2 "2021-02-02T02:29:39Z")

</div>

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