-
Notifications
You must be signed in to change notification settings - Fork 126
Generate data stream input configuration and documentation #2826
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
229b8a7
Create data-stream inputs with create command
mjwolf 236567e
Populate data stream descriptor with proper variable for inputs
mjwolf c2675c7
Render data stream manifests with complete inputs
mjwolf 1c8d105
Fix errors
mjwolf cfe4b6a
Add additional tests for data_stream_inputs
mjwolf 85f2e4c
Remove doc_link
mjwolf 498cee7
reformat
mjwolf fa005fd
Add input documentation
mjwolf e895dd0
Split input definitions into separate yml files
mjwolf 69c6854
Update data-stream-inputs to work with separate files
mjwolf f72eeeb
Move static documentation content into docs package
mjwolf 181d6e7
Automatically render input documentation when building package readme
mjwolf 4deb7c4
Do not render input docs in the archetype package
mjwolf 4d0e01e
Add AzureEventhub to input lists
mjwolf eb5a251
Add descriptions to inputs in create data-stream command
mjwolf d320f9e
Use collapsible sections for input docs, remove httpjson
mjwolf 5c747e8
Remove embedded httpjson doc
mjwolf ad06043
Merge remote-tracking branch 'upstream/main' into create-datastream-u…
mjwolf 86af1ea
Merge remote-tracking branch 'upstream/main' into create-datastream-u…
mjwolf fc75add
Use embed.FS to load input definitions
mjwolf 05acf87
Update package manifest with new data-stream policy
mjwolf ab84d6f
move static content in internal/docs dir
vinit-chauhan c66ca35
Insert agent template_path into data stream manifest
mjwolf 50f0b72
Remove more unused code
mjwolf d9eaf8e
added common agent code. added hbs files for {etw,redis}.
vinit-chauhan 7e69dd5
Merge remote-tracking branch 'upstream/main' into create-datastream-u…
mjwolf 5c9bea9
Add additional fields to vars in data stream manifest
mjwolf 3b6483b
Add additional fields to data stream manifest vars
mjwolf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{{#unless log_group_name}} | ||
{{#unless log_group_name_prefix}} | ||
{{#if log_group_arn }} | ||
log_group_arn: {{ log_group_arn }} | ||
{{/if}} | ||
{{/unless}} | ||
{{/unless}} | ||
{{#unless log_group_arn}} | ||
{{#unless log_group_name}} | ||
{{#if log_group_name_prefix }} | ||
log_group_name_prefix: {{ log_group_name_prefix }} | ||
{{/if}} | ||
{{/unless}} | ||
{{/unless}} | ||
{{#unless log_group_arn}} | ||
{{#unless log_group_name_prefix}} | ||
{{#if log_group_name }} | ||
log_group_name: {{ log_group_name }} | ||
{{/if}} | ||
{{/unless}} | ||
{{/unless}} | ||
{{#unless log_group_arn}} | ||
region_name: {{ region_name }} | ||
{{/unless}} | ||
{{#unless log_stream_prefix}} | ||
{{#if log_streams }} | ||
log_streams: {{ log_streams }} | ||
{{/if}} | ||
{{/unless}} | ||
{{#unless log_streams}} | ||
{{#if log_stream_prefix }} | ||
log_stream_prefix: {{ log_stream_prefix }} | ||
{{/if}} | ||
{{/unless}} | ||
{{#if start_position }} | ||
start_position: {{ start_position }} | ||
{{/if}} | ||
{{#if scan_frequency }} | ||
scan_frequency: {{ scan_frequency }} | ||
{{/if}} | ||
{{#if api_sleep }} | ||
api_sleep: {{ api_sleep }} | ||
{{/if}} | ||
{{#if api_timeout}} | ||
api_timeout: {{api_timeout}} | ||
{{/if}} | ||
{{#if latency }} | ||
latency: {{ latency }} | ||
{{/if}} | ||
{{#if number_of_workers }} | ||
number_of_workers: {{ number_of_workers }} | ||
{{/if}} | ||
{{#if credential_profile_name}} | ||
credential_profile_name: {{credential_profile_name}} | ||
{{/if}} | ||
{{#if shared_credential_file}} | ||
shared_credential_file: {{shared_credential_file}} | ||
{{/if}} | ||
{{#if default_region}} | ||
default_region: {{default_region}} | ||
{{/if}} | ||
{{#if access_key_id}} | ||
access_key_id: {{access_key_id}} | ||
{{/if}} | ||
{{#if secret_access_key}} | ||
secret_access_key: {{secret_access_key}} | ||
{{/if}} | ||
{{#if session_token}} | ||
session_token: {{session_token}} | ||
{{/if}} | ||
{{#if role_arn}} | ||
role_arn: {{role_arn}} | ||
{{/if}} | ||
{{#if proxy_url }} | ||
proxy_url: {{proxy_url}} | ||
{{/if}} | ||
|
||
{{#if tags.length}} | ||
tags: | ||
{{#each tags as |tag|}} | ||
- {{tag}} | ||
{{/each}} | ||
{{#if preserve_original_event}} | ||
- preserve_original_event | ||
{{/if}} | ||
{{else}} | ||
{{#if preserve_original_event}} | ||
tags: | ||
- preserve_original_event | ||
{{/if}} | ||
{{/if}} | ||
|
||
{{#contains "forwarded" tags}} | ||
publisher_pipeline.disable_host: true | ||
{{/contains}} | ||
|
||
{{#if processors}} | ||
processors: | ||
{{processors}} | ||
{{/if}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{{! start SQS queue }} | ||
{{#unless bucket_arn}} | ||
{{#unless non_aws_bucket_name}} | ||
{{#if queue_url }} | ||
queue_url: {{ queue_url }} | ||
{{/if}} | ||
{{/unless}} | ||
{{/unless}} | ||
{{! end SQS queue }} | ||
|
||
{{#unless queue_url}}{{! start S3 bucket polling }} | ||
|
||
{{! | ||
When using an S3 bucket, you can specify only one of the following options: | ||
- An AWS bucket ARN | ||
- A non-AWS bucket name | ||
}} | ||
|
||
{{! shared S3 bucket polling options }} | ||
{{#if number_of_workers }} | ||
number_of_workers: {{ number_of_workers }} | ||
{{/if}} | ||
{{#if bucket_list_prefix }} | ||
bucket_list_prefix: {{ bucket_list_prefix }} | ||
{{/if}} | ||
{{#if bucket_list_interval }} | ||
bucket_list_interval: {{ bucket_list_interval }} | ||
{{/if}} | ||
|
||
{{! AWS S3 bucket ARN options }} | ||
{{#unless non_aws_bucket_name}} | ||
{{#if bucket_arn }} | ||
bucket_arn: {{ bucket_arn }} | ||
{{/if}} | ||
{{/unless}}{{! end AWS S3 bucket ARN options }} | ||
|
||
{{! non-AWS S3 bucket ARN options }} | ||
{{#unless bucket_arn}} | ||
{{#if non_aws_bucket_name }} | ||
non_aws_bucket_name: {{ non_aws_bucket_name }} | ||
{{/if}} | ||
{{/unless}}{{! end non-AWS S3 bucket ARN options }} | ||
|
||
{{/unless}}{{! end S3 bucket polling }} | ||
|
||
{{#if buffer_size }} | ||
buffer_size: {{ buffer_size }} | ||
{{/if}} | ||
{{#if content_type }} | ||
content_type: {{ content_type }} | ||
{{/if}} | ||
{{#if encoding }} | ||
encoding: {{ encoding }} | ||
{{/if}} | ||
{{#if expand_event_list_from_field }} | ||
expand_event_list_from_field: {{ expand_event_list_from_field }} | ||
{{/if}} | ||
{{#if buffer_size }} | ||
buffer_size: {{ buffer_size }} | ||
{{/if}} | ||
{{#if fips_enabled }} | ||
fips_enabled: {{ fips_enabled }} | ||
{{/if}} | ||
{{#if include_s3_metadata }} | ||
include_s3_metadata: {{ include_s3_metadata }} | ||
{{/if}} | ||
{{#if max_bytes }} | ||
max_bytes: {{ max_bytes }} | ||
{{/if}} | ||
{{#if max_number_of_messages }} | ||
max_number_of_messages: {{ max_number_of_messages }} | ||
{{/if}} | ||
{{#if path_style }} | ||
path_style: {{ path_style }} | ||
{{/if}} | ||
{{#if provider }} | ||
provider: {{ provider }} | ||
{{/if}} | ||
{{#if sqs.max_receive_count }} | ||
sqs.max_receive_count: {{ sqs.max_receive_count }} | ||
{{/if}} | ||
{{#if sqs.wait_time }} | ||
sqs.wait_time: {{ sqs.wait_time }} | ||
{{/if}} | ||
|
||
{{#if file_selectors}} | ||
file_selectors: | ||
{{file_selectors}} | ||
{{/if}} | ||
|
||
{{#if credential_profile_name}} | ||
credential_profile_name: {{credential_profile_name}} | ||
{{/if}} | ||
{{#if shared_credential_file}} | ||
shared_credential_file: {{shared_credential_file}} | ||
{{/if}} | ||
{{#if visibility_timeout}} | ||
visibility_timeout: {{visibility_timeout}} | ||
{{/if}} | ||
{{#if api_timeout}} | ||
api_timeout: {{api_timeout}} | ||
{{/if}} | ||
{{#if endpoint}} | ||
endpoint: {{endpoint}} | ||
{{/if}} | ||
{{#if default_region}} | ||
default_region: {{default_region}} | ||
{{/if}} | ||
{{#if access_key_id}} | ||
access_key_id: {{access_key_id}} | ||
{{/if}} | ||
{{#if secret_access_key}} | ||
secret_access_key: {{secret_access_key}} | ||
{{/if}} | ||
{{#if session_token}} | ||
session_token: {{session_token}} | ||
{{/if}} | ||
{{#if role_arn}} | ||
role_arn: {{role_arn}} | ||
{{/if}} | ||
{{#if fips_enabled}} | ||
fips_enabled: {{fips_enabled}} | ||
{{/if}} | ||
{{#if proxy_url }} | ||
proxy_url: {{proxy_url}} | ||
{{/if}} | ||
{{#if parsers}} | ||
parsers: | ||
{{parsers}} | ||
{{/if}} | ||
|
||
{{#if tags.length}} | ||
tags: | ||
{{#each tags as |tag|}} | ||
- {{tag}} | ||
{{/each}} | ||
{{#if preserve_original_event}} | ||
- preserve_original_event | ||
{{/if}} | ||
{{else}} | ||
{{#if preserve_original_event}} | ||
tags: | ||
- preserve_original_event | ||
{{/if}} | ||
{{/if}} | ||
|
||
{{#contains "forwarded" tags}} | ||
publisher_pipeline.disable_host: true | ||
{{/contains}} | ||
|
||
{{#if processors}} | ||
processors: | ||
{{processors}} | ||
{{/if}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.