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

Deprecate log input in favour of filestream #28623

Merged
merged 5 commits into from
Nov 4, 2021

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Oct 25, 2021

What does this PR do?

This PR marks the log input as deprecated. As we are not in a hurry to remove the input because it possibly impacts lots of users, I omitted the version to remove from the log message. Our goal is to let users who are satisfied with the input use it as long as they would like to. However, if it is no longer working or found any issues in the input, we are asking them to move to filestream input.

Why is it important?

Everyone should move to filestream input because it is a great improvement over the old log input.

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 25, 2021
@mergify
Copy link
Contributor

mergify bot commented Oct 25, 2021

This pull request does not have a backport label. Could you fix it @kvch? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v./d./d./d is the label to automatically backport to the 7./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

@mergify mergify bot added the backport-skip Skip notification from the automated backport with mergify label Oct 25, 2021
@kvch kvch added the backport-v7.16.0 Automated backport with mergify label Oct 25, 2021
@mergify mergify bot removed the backport-skip Skip notification from the automated backport with mergify label Oct 25, 2021
@kvch kvch added backport-skip Skip notification from the automated backport with mergify Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Oct 25, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 25, 2021
@mergify mergify bot removed the backport-skip Skip notification from the automated backport with mergify label Oct 25, 2021
@elasticmachine
Copy link
Collaborator

elasticmachine commented Oct 25, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-11-04T16:10:09.478+0000

  • Duration: 106 min 36 sec

  • Commit: 6c9d725

Test stats 🧪

Test Results
Failed 0
Passed 15004
Skipped 2324
Total 17328

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

@kvch
Copy link
Contributor Author

kvch commented Nov 4, 2021

@ruflin I removed the version from the log message and added more details to the PR description.

Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

2 minor comments, overall LGTM. Approving already.

@@ -82,6 +85,10 @@ func NewInput(
outlet channel.Connector,
context input.Context,
) (input.Input, error) {
deprecatedNotificationOnce.Do(func() {
cfgwarn.Deprecate("8.0.0", "Log input. Use Filestream input instead.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be 7.16.0?

@@ -48,6 +54,10 @@ type Input struct {
// NewInput creates a new stdin input
// This input contains one harvester which is reading from stdin
func NewInput(cfg *common.Config, outlet channel.Connector, context input.Context) (input.Input, error) {
deprecatedNotificationOnce.Do(func() {
cfgwarn.Deprecate("", "Stdin input is deprecated.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add this to the changelog too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I accidentally added this file. I wanted to create a separate PR, so I only have to add a single line to the changelog.

@kvch kvch added the backport-v8.0.0 Automated backport with mergify label Nov 4, 2021
@kvch kvch merged commit 97243e6 into elastic:master Nov 4, 2021
mergify bot pushed a commit that referenced this pull request Nov 4, 2021
mergify bot pushed a commit that referenced this pull request Nov 4, 2021
kvch added a commit that referenced this pull request Nov 5, 2021
(cherry picked from commit 97243e6)

Co-authored-by: Noémi Ványi <[email protected]>
kvch added a commit that referenced this pull request Nov 5, 2021
(cherry picked from commit 97243e6)

Co-authored-by: Noémi Ványi <[email protected]>
v1v added a commit to v1v/beats that referenced this pull request Nov 8, 2021
…in-the-package-binareis

* upstream/master:
  allows disable pod events enrichment with deployment name (elastic#28521)
  Remove Docker input from Filebeat (elastic#28817)
  [breaking] Make default_field: false the default for all fields (elastic#28596)
  Osquerybeat: Improve osquery client connect code (elastic#28848)
  Add crawler  metrics into the stats metricset for Enterprise Search (elastic#28790)
  Remove the now deprecated appsearch module from metricbeat (elastic#28850)
  Remove Beat generators (elastic#28816)
  chore: upload files to Google Storage when they exist (elastic#28836)
  Revert "chore(ci): disable E2E tests in Beats (elastic#28715)" (elastic#28812)
  Deprecate generating custom Beats (elastic#28814)
  [Metricbeat] upgrade flatbuffers to 1.12.1 (elastic#28094)
  Osquerybeat: Fix restart flags after previously bad config (elastic#28827)
  Force ECS and JSON logging for libbeat/logp (elastic#28573)
  Filebeat: Error on startup for unconfigured module (elastic#28818)
  Deprecate log input in favour of filestream (elastic#28623)
  Fix some spelling mistakes (elastic#28080)
@jasonperrone
Copy link

Is there anything we have to be aware of when changing a log type filebeat input to a filestream input? Is there a migration or conversion we have to do or is it simply just a matter of changing "log" to "filestream" in filebeat.yml?

@derekha-igs
Copy link

What I'm aware is will the registry can handle the log to filestream migration correctly?
Say, the file read first 100 lines by log input, and I stop the filebeat and migration to filestream, will the filestream able to read from line 101? Also the files processed before by log input will reprocess or not?

Please advice, thanks.

@haohao6683
Copy link

Is there anything we have to be aware of when changing a log type filebeat input to a filestream input? Is there a migration or conversion we have to do or is it simply just a matter of changing "log" to "filestream" in filebeat.yml?

Please advice, thanks.

leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…in-the-package-binareis

* upstream/master:
  allows disable pod events enrichment with deployment name (elastic#28521)
  Remove Docker input from Filebeat (elastic#28817)
  [breaking] Make default_field: false the default for all fields (elastic#28596)
  Osquerybeat: Improve osquery client connect code (elastic#28848)
  Add crawler  metrics into the stats metricset for Enterprise Search (elastic#28790)
  Remove the now deprecated appsearch module from metricbeat (elastic#28850)
  Remove Beat generators (elastic#28816)
  chore: upload files to Google Storage when they exist (elastic#28836)
  Revert "chore(ci): disable E2E tests in Beats (elastic#28715)" (elastic#28812)
  Deprecate generating custom Beats (elastic#28814)
  [Metricbeat] upgrade flatbuffers to 1.12.1 (elastic#28094)
  Osquerybeat: Fix restart flags after previously bad config (elastic#28827)
  Force ECS and JSON logging for libbeat/logp (elastic#28573)
  Filebeat: Error on startup for unconfigured module (elastic#28818)
  Deprecate log input in favour of filestream (elastic#28623)
  Fix some spelling mistakes (elastic#28080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v7.16.0 Automated backport with mergify backport-v8.0.0 Automated backport with mergify Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants