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

enhancement(journald source): Add received and invalid line events #3241

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

bruceg
Copy link
Member

@bruceg bruceg commented Jul 28, 2020

Signed-off-by: Bruce Guenter bruce@timber.io

Closes #3200

Are there other events that would be worth adding, like counting batches or lines before filtering?

Signed-off-by: Bruce Guenter <bruce@timber.io>
@bruceg bruceg added type: enhancement A value-adding code change that enhances its existing functionality. domain: observability Anything related to monitoring/observing Vector source: journald Anything `journald` source related labels Jul 28, 2020
@bruceg bruceg requested a review from lukesteensen July 28, 2020 20:43
@bruceg bruceg self-assigned this Jul 28, 2020
pub text: String,
}

impl InternalEvent for JournaldInvalidRecord {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukesteensen you would know better. But do we want errors to end with *Error? So JournaldInvalidRecordError?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The precedent is to not, and just make the event name obvious: ElasticSearchMissingKeys, KubernetesLogsEventAnnotationFailed, RegexFailedMatch, etc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. I do think we should standardize around naming rules sooner than later. I'm poking at this because I would like to derivce documentation from these structures in some way. But that's outside of the scope of this PR right now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's as simple as all of these being considered errors, so the naming convention now is just precisely what happened.

Signed-off-by: Bruce Guenter <bruce@timber.io>
@bruceg bruceg merged commit 9745e9a into master Jul 28, 2020
@bruceg bruceg deleted the journald-events branch July 28, 2020 22:15
mengesb pushed a commit to jacobbraaten/vector that referenced this pull request Dec 9, 2020
…ectordotdev#3241)

Signed-off-by: Bruce Guenter <bruce@timber.io>
Signed-off-by: Brian Menges <brian.menges@anaplan.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: observability Anything related to monitoring/observing Vector source: journald Anything `journald` source related type: enhancement A value-adding code change that enhances its existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define events for the journald source
3 participants