Skip to content

Commit

Permalink
Support Cloudbeat regex input type (#638)
Browse files Browse the repository at this point in the history
* support input type with regex

* Update supported.go

* Changing the regex to support backward compatible
  • Loading branch information
ofiriro3 authored Jun 30, 2022
1 parent ed9d75e commit 94975cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/agent/program/supported.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions internal/spec/cloudbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ args: [
]
restart_on_output_change: true
artifact: cloudbeat
action_input_types:
- cloudbeat

rules:
- fix_stream: {}
Expand All @@ -19,11 +17,12 @@ rules:
on_conflict: insert_after
type: logs

- filter_values:
selector: inputs

# All Cloudbeat input types begin with 'cloudbeat'.
- filter_values_with_regexp:
key: type
values:
- cloudbeat
re: '^cloudbeat.*'
selector: inputs

- inject_agent_info: {}

Expand Down

0 comments on commit 94975cc

Please sign in to comment.