JDBCriver and FSriver together

HI,
I have a requirement where I am reading file path from database and fetching files from file server.
Like KBid=1 KBfilepath="filepath" and KBstatus="ready".
Now I need to feed file and also other contents like KBID to elasticsearch.
How do I form query for this.I am using marvel.

Rivers are deprecated.

Look at using Logstash instead.

can anyone share small example

For what?

example for using fileserver along with JDBC connection.where path of files are in database.