15 lines
391 B
Markdown
15 lines
391 B
Markdown
|
# Example: SQL Server
|
||
|
* Tested using http://msdn.microsoft.com/en-gb/sqlserver/aa937724.aspx
|
||
|
```
|
||
|
input
|
||
|
{
|
||
|
stdin { }
|
||
|
}
|
||
|
output {
|
||
|
jdbc {
|
||
|
connection_string => "jdbc:sqlserver://server:1433;databaseName=databasename;user=username;password=password;autoReconnect=true;"
|
||
|
statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ]
|
||
|
}
|
||
|
}
|
||
|
```
|