Skip to content

how to filter elasticsearch tail for a particular type and use regex #5

Description

@satishmane

Hi,

I have type and message fields in my elasticseach logstash entries.

I want to filter entries by type and then apply regular expression message field to tail only matching entries.
I tried this, but it does not work.

nodejs ./esTail.js --hostport=localost:9200 --index=logstash-* --context=type=test-component --regex='(Offset Report)' --regexflags="gm"

Above command should filter messages based matching type and then apply regex to show only entries that have "Offset Report" string in it.

Am I making any mistake here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions