Multiple database connection using logstash

(Boukhdhira) #1

Is it possible to have many sqlite connection with logstash in the same configuration using JDBC input ?
However, databases contains the same tables structures .

(Magnus Bäck) #2

Yes, you can have multiple jdbc inputs in your configuration.

(Boukhdhira) #3

Thank you for your answer .
In reality, I have a list of servers each one send there logs as SQLite database (with the same arborasonce and data rigging) to directory X and I would like to treat this logs using ELK.
Example server1 has a server1.db under the X / var / db / server1.db tree
and server2 save its logs under X / var / db / server2.db
i couldn't find a solution with glob patterns and one jdbc input for an unknown servers number.
Any help would be appreciated.

(Magnus Bäck) #4

You need multiple jdbc inputs.

(Boukhdhira) #5

How it could be possible with unknown data base number?

(Magnus Bäck) #6

Well, you could e.g. generate your configuration file and perform the wildcard expansion outside of Logstash.

(system) #7

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