# Read multiple sqlite .db files in logstash

**URL:** <https://discuss.elastic.co/t/read-multiple-sqlite-db-files-in-logstash/255854>\
**Category:** Logstash\
**Created:** [November 18, 2020, 2:20pm UTC](https://discuss.elastic.co/t/read-multiple-sqlite-db-files-in-logstash/255854 "2020-11-18T14:20:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_Kumar3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deepak_kumar3/32/77878_2.png) [@Deepak\_Kumar3](https://discuss.elastic.co/u/Deepak_Kumar3)\
**Post date:** [November 18, 2020, 2:20pm UTC](https://discuss.elastic.co/t/read-multiple-sqlite-db-files-in-logstash/255854/1 "2020-11-18T14:20:01Z")

</div>

hi, trying to read sqlite .db files using jdbc plugin and here is the configuration file for logstash below.

```auto
input {
    jdbc {
     jdbc_driver_library => "D:/etc/driver/sqlite-jdbc-3.32.3.2.jar"
     jdbc_driver_class => "org.sqlite.JDBC"
     jdbc_connection_string => "jdbc:sqlite:C:/logfile/1/API-SqLiteLogTracing-2020-11-09.db"
     jdbc_user => ""
     use_column_value => true
     schedule => "* * * * *"
     statement => "SELECT * FROM Log"
	 tracking_column => logid
   }
}
output {
		  elasticsearch {
    hosts => ["http://localhost:9200"]
    index => "cimindex"
  }
      stdout {
        codec => rubydebug
      }
    }

```

But i have multiple .db files which are created on basis of date.  
For example -  
API-SqLiteLogTracing-2020-11-13.db  
API-SqLiteLogTracing-2020-11-12.db  
API-SqLiteLogTracing-2020-11-11.db  
API-SqLiteLogTracing-2020-11-10.db  
API-SqLiteLogTracing-2020-11-09.db  
and soon..  
So, please help me for this, how to modify configuration file for logstash for multiple sqlite .db files.  
I have tried wildcards in file name like this **(API-SqLiteLogTracing-\*.db)** but that doesn't work and giving me error file not found.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 16, 2020, 2:20pm UTC](https://discuss.elastic.co/t/read-multiple-sqlite-db-files-in-logstash/255854/2 "2020-12-16T14:20:13Z")

</div>

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