Logging Executed SQL Commands
Hello!
Attached below is a flow I have created to perform a simple sorting task with a given CSV file 
1. Getfile processor brings the target CSV file into the flow
2. QueryRecord processor executes SQL commands and send the flowfile two ways
3. Each flow file is saved into Postgresql database with PutDatabaseRecord processors.
What I am trying to do is.
1. Keep a log of all SQL commands that are executed on Queryrecord processor and keep timestamp (When they were executed) of them
2. Save the log into a Postgresql table named 'validation_log" that has 3 columns. (CSV file name, SQL command, Timestamp)
How can I make this work?



