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

Update ECS tty Field in Inventory Processes Table #396

Conversation

cborla
Copy link
Member

@cborla cborla commented Dec 6, 2024

Related issue
Close #395

Description

Align the Inventory Processes table with the latest ECS (Elastic Common Schema) specifications by updating the process.tty field. Replace it with the ECS-compliant fields process.tty.char_device.major.

Configuration options

agent:
  server_url: https://localhost:27000
  registration_url: https://localhost:55000
  path.data: /var/lib/wazuh-agent
  retry_interval: 30s
inventory:
  enabled: true
  interval: 30s
  scan_on_start: true
  hardware: true
  system: true
  networks: true
  packages: true
  ports: true
  ports_all: true
  processes: true
  hotfixes: true
logcollector:
  enabled: true
  localfiles:
    - /var/log/auth.log
    - /tmp/logtest.log
  reload_interval: 1m
  file_wait: 500ms

Logs/Alerts example

{"data":{"process":{"args":"","command_line":"","group":{"id":"root"},"name":"kworker/u256:2-","parent":{"pid":2},"pid":"431625","real_group":{"id":"root"},"real_user":{"id":"root"},"saved_group":{"id":"root"},"saved_user":{"id":"root"},"start":9302261,"thread":{"id":431625},"tty":{"char_device":{"major":0}},"user":{"id":"root"}}},"id":"aW52ZW50b3J5OnByb2Nlc3Nlczo0MzE2MjU=","operation":"create","type":"processes"}

@cborla cborla requested a review from TomasTurina December 6, 2024 17:50
@cborla cborla marked this pull request as ready for review December 6, 2024 17:51
@cborla cborla merged commit 7eedf4e into master Dec 6, 2024
5 checks passed
@cborla cborla deleted the enhancement/395-update-ecs-tty-field-in-inventory-processes-table branch December 6, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update ECS tty Field in Inventory Processes Table
2 participants