This is just a feature request sort of thing.
I would like to put all the data I pull from the JDBC input inside a subfield with a configurable name.
Something like:
input.conf
input {
jdbc {
...
jdbc_output_field => "my_data"
}
}
So that the output looks like:
{
"_index": "my_index-2016.08.31",
"_type": "foo",
"_id": "abc123",
"_score": 1,
"_source": {
"my_data": {
"field_one_from_db": 1,
"field_two_from_db": 2
},
"some_field_i_add": "foo",
"structure": {
"more_things": "bar"
}
}
}
What do you think?