Skip to content

Configure retry count #806

Open
Open
@ov7a

Description

@ov7a

My configuration is the following
java app => log4j2 SocketAppender (tcp) => Logstash: tcp input, es output => elasticsearch

Scenario:
Elasticsearch cluster is red and do not accept indexing by some reason.

Current behavior:
Logstash infinitely retries to index log into elasticsearch. Log4j2 waits for it and the java app simply hangs.

Desired behavior:
Logstash should retry, say, 5 times and then just reply to log4j2 with error somehow. Log4j2 throws an error => it can be logged in file and further investigated.

Is there an option to limit retry count for es output plugin?

(I've asked this on discuss, but received no reply )

  • Version: 5.6.10
  • Operating System: Debian 8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions