Skip to content

Commit

Permalink
Update tests using journalctl tool to start a custom independent agent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Sep 19, 2024
1 parent 99a22db commit 468f504
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,18 @@ data_stream:
paths:
- "/run/service_logs/iptables.journal"
agent:
base_image: complete # Related issue: https://github.com/elastic/integrations/issues/10998
base_image: systemd # Related issue: https://github.com/elastic/integrations/issues/10998
runtime: docker
provisioning_script:
language: "sh"
contents: |
set -eu
if grep fedora /etc/os-release > /dev/null ; then
microdnf update
microdnf install -y systemd
microdnf clean all
else
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes systemd
apt-get clean all
fi
16 changes: 15 additions & 1 deletion packages/journald/_dev/test/system/test-journald-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,18 @@ vars:
- "/run/service_logs/test.journal"
tags: [forwarded]
agent:
base_image: complete # Related issue: https://github.com/elastic/integrations/issues/10998
base_image: systemd # Related issue: https://github.com/elastic/integrations/issues/10998
runtime: docker
provisioning_script:
language: "sh"
contents: |
set -eu
if grep fedora /etc/os-release > /dev/null ; then
microdnf update
microdnf install -y systemd
microdnf clean all
else
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes systemd
apt-get clean all
fi

0 comments on commit 468f504

Please sign in to comment.