Hello,
I think the title says a lot already but here are some details. I have a PostgreSQL database, which I try to get data from with the JDBC input plugin. There doesn't seem to be a problem in my Logstash config file, since the connection to the database works. When I query the database directly I get results so the query is correct too.
According to the documentation the value "doc" is used if the index type isn't specified, and that's what I see in my mapping.
And the id is only required if I want to overwrite the previous data I think. And since I don't have any to begin with, I'm not sure it's useful.
I still tried but it didn't change anything. I would have loved if it had been that simple!
Ok I activated trace logs, it told me that there shouldn't be a semi-colon in the end of the query. I removed it but it didn't help.
Then I changed my index pattern: I used one my database date fields instead of @timestamp and apparently that's what was creating the issue.
Now I have a problem because I want to calculate the difference between two dates, but that's for another thread (if someone knows the solution, an answer by PM is welcome )
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.