diff --git a/plugins/in_systemd/systemd.c b/plugins/in_systemd/systemd.c index 11dbae55d63..e8315c69a3c 100644 --- a/plugins/in_systemd/systemd.c +++ b/plugins/in_systemd/systemd.c @@ -296,17 +296,6 @@ static int in_systemd_collect(struct flb_input_instance *ins, } } - if (ctx->lowercase == FLB_TRUE) { - ret = sd_journal_get_data_threshold(ctx->j, &ctx->threshold); - if (ret != 0) { - flb_plg_error(ctx->ins, - "error setting up systemd data. " - "sd_journal_get_data_threshold() return value '%i'", - ret); - return FLB_SYSTEMD_ERROR; - } - } - while ((ret_j = sd_journal_next(ctx->j)) > 0) { /* If the tag is composed dynamically, gather the Systemd Unit name */ if (ctx->dynamic_tag) { diff --git a/plugins/in_systemd/systemd_config.h b/plugins/in_systemd/systemd_config.h index af789b7ea3b..83e14856b4d 100644 --- a/plugins/in_systemd/systemd_config.h +++ b/plugins/in_systemd/systemd_config.h @@ -63,7 +63,6 @@ struct flb_systemd_config { int dynamic_tag; int max_fields; /* max number of fields per record */ int max_entries; /* max number of records per iteration */ - size_t threshold; /* threshold for retriveing journal */ #ifdef FLB_HAVE_SQLDB flb_sds_t db_path;