The Wayback Machine - https://web.archive.org/web/20201213163239/https://github.com/gchq/stroom/issues/1213
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pipeline element that warns if input is empty and/or add raise error/warn/info message on empty input [enhancement] #1213

Open
burnalting opened this issue Jul 29, 2019 · 1 comment

Comments

@burnalting
Copy link
Collaborator

@burnalting burnalting commented Jul 29, 2019

On occassion, an event source, if mis-configured, may send an empty file. It would have value if a pipeline element could exist that raises a configurable error, warning, etc if the given file is empty when processed (and then jump to the next file).

For example, the Stroom UI may aggreagte XML fragments and the 16th out of say 1000 files is empty. It would be good to identify this empty entry via processing metadata so one can investigate the sources.

@stroomdev10
Copy link
Member

@stroomdev10 stroomdev10 commented Oct 3, 2019

You can capture the StreamSize from meta data using stroom:meta('StreamSize').

An approach would be to have a new pipeline that reads all Raw Event Streams, and raise a stroom:log() when the StreamSize is 0, you could output all the relevant meta into the message.

You could also use this approach to warn of impending certificate expiry using stroom:meta('RemoteCertExpiry')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.