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

Add system level logs for Agent on k8s #24185

Merged
merged 2 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 44 additions & 2 deletions deploy/kubernetes/elastic-agent-standalone-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,49 @@ data:
node: ${NODE_NAME}
scope: node
inputs:
- name: log-1
- name: system-logs
type: logfile
use_output: default
meta:
package:
name: system
version: 0.10.7
data_stream:
namespace: default
streams:
- data_stream:
dataset: system.auth
type: logs
paths:
- /var/log/auth.log*
- /var/log/secure*
exclude_files:
- .gz$
multiline:
pattern: ^\s
match: after
processors:
- add_fields:
target: ''
fields:
ecs.version: 1.5.0
- data_stream:
dataset: system.syslog
type: logs
paths:
- /var/log/messages*
- /var/log/syslog*
exclude_files:
- .gz$
multiline:
pattern: ^\s
match: after
processors:
- add_fields:
target: ''
fields:
ecs.version: 1.5.0
- name: container-log
type: logfile
use_output: default
meta:
Expand All @@ -124,7 +166,7 @@ data:
symlinks: true
paths:
- /var/log/containers/*${kubernetes.container.id}.log
- name: system-3
- name: system-metrics
type: system/metrics
use_output: default
meta:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,49 @@ data:
node: ${NODE_NAME}
scope: node
inputs:
- name: log-1
- name: system-logs
type: logfile
use_output: default
meta:
package:
name: system
version: 0.10.7
data_stream:
namespace: default
streams:
- data_stream:
dataset: system.auth
type: logs
paths:
- /var/log/auth.log*
- /var/log/secure*
exclude_files:
- .gz$
multiline:
pattern: ^\s
match: after
processors:
- add_fields:
target: ''
fields:
ecs.version: 1.5.0
- data_stream:
dataset: system.syslog
type: logs
paths:
- /var/log/messages*
- /var/log/syslog*
exclude_files:
- .gz$
multiline:
pattern: ^\s
match: after
processors:
- add_fields:
target: ''
fields:
ecs.version: 1.5.0
- name: container-log
type: logfile
use_output: default
meta:
Expand All @@ -40,7 +82,7 @@ data:
symlinks: true
paths:
- /var/log/containers/*${kubernetes.container.id}.log
- name: system-3
- name: system-metrics
type: system/metrics
use_output: default
meta:
Expand Down