I want to stream data from LogStash to a MS SQL Server working table with a schema something like this:
CREATE TABLE [dbo].[WorkingTable] (
[MessageId] bigint, //Auto Incrementing primary key.
[Data] nvarchar(MAX) //JSON data.
)
I want the [Data]
field to contain the entire message from LogStash, serialized as a JSON string, and don't want to half to use sprintf to format it explicitly.
How can this be done using the JDBC output plugin or perhaps some other plugin?