Is there a way to remove duplicate code in logstash?

Can I include duplicate code in a specific file in the log?

For example, when importing data from multiple db tables, you need to keep writing
jdbc {
jdbc_driver_library => "mysql-connector-java-5.1.36-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydb"
......
}

Is there a way to remove duplicate code like this?
I want to put duplicate code content into a file and load it from the logstash conf file.

No, I do not think that is possible.

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