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

Cherry-pick #9855 to 6.5: Ignore timestamp in redis, haproxy and system filebeat module #10072

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

jsoriano
Copy link
Member

Cherry-pick of PR #9855 to 6.5 branch. Original message:

Another way to solve this issue #9849 is to ignore timestamp in test_modules.py for redis, haproxy and system filebeat module.

…ebeat module (elastic#9855) (elastic#9858)

* Ignore timestamp in redis, haproxy and system filebeat module (elastic#9855)

* Ignore timestamp in redis, haproxy and system filebeat module

* Fixing formatting

(cherry picked from commit b9a20f7)

* Use event.dataset in if statement

* Update golden files for icinga/startup test to exclude timestamp (elastic#9506)

The icing/startup log file does not contain a timestamp. Because of this the timestamp from filebeat is taken. During the generation of golden files still a timestamp was added but every skipped on comparison. Instead now the timestamp is not added to the generated file anymore to now show a diff each time GENERATE is run.

* Regenerate expectations for logs without timestamps (elastic#9862)

* Rerun GENERATE=1 to update expected json files

(cherry picked from commit 6defdd4)
@jsoriano
Copy link
Member Author

Backporting this for #10057

@jsoriano jsoriano self-assigned this Jan 15, 2019
Copy link
Contributor

@webmat webmat left a comment

Choose a reason for hiding this comment

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

LGTM

@webmat
Copy link
Contributor

webmat commented Jan 15, 2019

jenkins, test this

@webmat
Copy link
Contributor

webmat commented Jan 16, 2019

Test failures are flakiness in other Beats. I think we're good to merge this, WDYT @jsoriano?

@jsoriano
Copy link
Member Author

Yeah, merging this.

@jsoriano jsoriano merged commit 38a4856 into elastic:6.5 Jan 17, 2019
@jsoriano jsoriano deleted the backport_9855_6.5 branch January 17, 2019 11:28
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…ebeat module (elastic#9855) (elastic#9858) (elastic#10072)

(cherry picked from commit a5f0323)

The icing/startup log file does not contain a timestamp. Because of this the timestamp from filebeat is taken. During the generation of golden files still a timestamp was added but every skipped on comparison. Instead now the timestamp is not added to the generated file anymore to now show a diff each time GENERATE is run.

(cherry picked from commit 6defdd4)

Co-authored-by: Nicolas Ruflin <[email protected]>
Co-authored-by: kaiyan-sheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants