Hi,
I am using jdbc input having a query like;
SELECT id,name,address,timea,timeb FROM mytable where TO_CHAR(timea,'yyyy-mm-dd') > '2017-01-01' and TO_CHAR(timeb,'yyyy-mm-dd') < '2017-01-16'
I have configured my elasticsearch output like;
index => "myindex-%{+YYYY-MM-dd}"
I was expecting indices like myindex-2017-01-01
, myindex-2017-01-02
, myindex-2017-01-03
etc. But what I got was a single index myindex-2017-01-17
with all entries inside. I think it took my system date instead of date from query result. How can I achieve indices like I have mentioned?
Thanks in advance..