What field to save the state of the logs for Logstash JDBC input plugin?

Is there any way to save the state of the logs in Logstash JDBC input plugin?

For example, for file input plugin, there is sincedb_path which remembers where it left off from reading the logs.

Yes, the jdbc input can persist state.

1 Like

I'm not sure what value to include for sql_last_value as JDBC state. Coud you please clarify this?

Look at the documentation for the tracking_column, tracking_column_type and use_column_value on the jdbc input. If you search in this forum you will find many examples of people using them.

Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.