How should I express today's date in sql in logstash?
I tried this and it doesn't work. It throws error saying cannot convert VARCHAR '%{YYYY.DD.dd}' to DATE.
Please help.
input {
jdbc {
....
statement => "select * from ... where date_col=:'todayDate'
parameters => { "todayDate" => "%{YYYY.DD.dd}" }
....
}
}