Multiple jdbc input configs error

(Craig Foote) #1

I have two Logstash config files that run independently fine but not when run with -f as their directory.
They're almost identical in that they use jdbc input plugin just with different connection strings and system names in tags.

        jdbc_driver_library => "/licensed/"
        jdbc_driver_class => "Java::oracle.jdbc.Oracledriver"
        tags => ["system1"]
    if "system1" in [tags]{

The error I'm getting on Logstash startup is:

"Error: Expected one of #, {, } at line 35, column 27 (byte 851) after ... input{\n\tjdbc{\n\t\tjdbc_driver_library => ""}

Like I said, they run independently fine but not together. Is there any issue with running multiple jdbc input plugins?

(Magnus B├Ąck) #2

Does your config file really say jdbc_driver class and not jdbc_driver_class?

(Craig Foote) #3

No sorry, that was a typo on my part. I'm on a private network and had to retype everything on my internet machine and missed the underscore. I've edited my original post to be accurate. I see in the error message the concatenation of the two config files, i.e. I see the end of one file then the beginning of the next but the point it reports the error at, near the beginning of the second file, doesn't make much sense.

(Craig Foote) #4

My apologies, It turned out the first file was missing a closing quote. Sorry for the noise :frowning:

(system) #5