Skip to content

[journald] Create custom journald input package - #1739

Merged
andrewkroh merged 3 commits into
elastic:masterfrom
andrewkroh:feature/journald/new-package
Oct 5, 2021
Merged

[journald] Create custom journald input package#1739
andrewkroh merged 3 commits into
elastic:masterfrom
andrewkroh:feature/journald/new-package

Conversation

@andrewkroh

Copy link
Copy Markdown
Contributor

What does this PR do?

Create a generic package for ingesting journald logs.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • If I'm introducing a new feature, I have modified the Kibana version constraint in my package's manifest.yml file to point to the latest Elastic stack release (e.g. ^7.13.0).

Screenshots

Screen Shot 2021-09-16 at 2 29 14 PM

Screen Shot 2021-09-16 at 2 28 34 PM

@andrewkroh andrewkroh added enhancement New feature or request Team:Security-External Integrations New Integration Issue or pull request for creating a new integration package. Integration:journald Custom Journald logs labels Sep 16, 2021
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@elasticmachine

elasticmachine commented Sep 16, 2021

Copy link
Copy Markdown

💚 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-10-05T17:25:03.514+0000

  • Duration: 15 min 43 sec

  • Commit: 9c9bb7e

Test stats 🧪

Test Results
Failed 0
Passed 3
Skipped 0
Total 3

🤖 GitHub comments

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

  • /test : Re-trigger the build.
Create a generic package for ingesting journald logs.

@leehinman leehinman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PR# needs update.

Comment thread packages/journald/data_stream/log/fields/input.yml Outdated
description: >
The name of the originating host (from journald).

- name: host.id

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ECS field, move to ecs.yml?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The reason I defined them here is because I wanted to overwrite the description with its journald specific meaning. Ideally I would be able to use something like this to give clear indication that the fields type is governed by ECS, but that I'm giving it a tailored description to the use case.

- name: host.hostname
  external: ecs
  description: >
    The name of the originating host (from journald).

- name: host.id
  external: ecs
  description: >
    The machine ID of the originating host (from `machine-id`).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I did move them over to ecs.yml with an external: ecs.

Comment thread packages/journald/changelog.yml Outdated
@andrewkroh

Copy link
Copy Markdown
Contributor Author

This is waiting on a new Agent build containing elastic/beats#28160.

@andrewkroh

Copy link
Copy Markdown
Contributor Author

/test

1 similar comment
@andrewkroh

Copy link
Copy Markdown
Contributor Author

/test

@andrewkroh
andrewkroh merged commit d0dcc58 into elastic:master Oct 5, 2021
v1v added a commit to v1v/integrations that referenced this pull request Oct 6, 2021
…thub.com:v1v/integrations into feature/refactor-to-support-windows-integrations

* 'feature/refactor-to-support-windows-integrations' of github.com:v1v/integrations: (200 commits)
  [CI] Draft for windows system tests
  [journald] Create custom journald input package (elastic#1739)
  [Microsoft_DHCP] New package replacing old RSA2ELK DHCP package (elastic#1793)
  Fix contains check for forwarded tag (elastic#1861)
  [google_workspace] Fix contains check for forwarded tag (elastic#1819)
  Fix contains check for forwarded tag (elastic#1805)
  Fix contains check for forwarded tag (elastic#1815)
  Fix contains check for forwarded tag (elastic#1816)
  Fix contains check for forwarded tag (elastic#1817)
  Fix contains check for forwarded tag (elastic#1818)
  Fix contains check for forwarded tag (elastic#1820)
  Fix contains check for forwarded tag (elastic#1821)
  Fix contains check for forwarded tag (elastic#1822)
  Fix contains check for forwarded tag (elastic#1823)
  Fix contains check for forwarded tag (elastic#1824)
  Fix contains check for forwarded tag (elastic#1825)
  Fix contains check for forwarded tag (elastic#1826)
  Fix contains check for forwarded tag (elastic#1827)
  Fix contains check for forwarded tag (elastic#1828)
  Fix contains check for forwarded tag (elastic#1829)
  ...
orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
Create a generic package for ingesting journald logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:journald Custom Journald logs New Integration Issue or pull request for creating a new integration package.

3 participants