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

[integrations][http_endpoint] - Converted HTTP Endpoint Integration to input type #9732

Merged
merged 3 commits into from
Apr 30, 2024
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
18 changes: 0 additions & 18 deletions packages/http_endpoint/_dev/build/docs/README.md

This file was deleted.

13 changes: 13 additions & 0 deletions packages/http_endpoint/_dev/test/system/test-http-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
service: test-webhook-http
service_notify_signal: SIGHUP
input: http_endpoint
vars:
data_stream.dataset: http_endpoint.http_endpoint
preserve_original_event: true
listen_address: 0.0.0.0
url: /json
prefix: event
listen_port: 9515
basic_auth: true
username: abc123
password: abc123
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ prefix: {{prefix}}
{{#if pipeline}}
pipeline: {{pipeline}}
{{/if}}
{{#if preserve_original_event}}
preserve_original_event: {{preserve_original_event}}
{{/if}}
{{#if basic_auth}}
basic_auth: {{basic_auth}}
{{/if}}
Expand Down Expand Up @@ -61,12 +58,13 @@ include_headers:
ssl:
{{ssl}}
{{/if}}
{{#if tags}}
tags:
{{#if preserve_original_event}}
- preserve_original_event
{{/if}}
{{#each tags as |tag|}}
- {{tag}}
{{/each}}
{{/if}}
{{#contains "forwarded" tags}}
publisher_pipeline.disable_host: true
{{/contains}}
Expand Down
5 changes: 5 additions & 0 deletions packages/http_endpoint/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "2.0.0"
changes:
- description: Converted package to input type.
type: enhancement
link: https://github.com/elastic/integrations/pull/9732
- version: "1.16.0"
changes:
- description: Allow user selection of HTTP method.
Expand Down

This file was deleted.

182 changes: 0 additions & 182 deletions packages/http_endpoint/data_stream/generic/manifest.yml

This file was deleted.

35 changes: 35 additions & 0 deletions packages/http_endpoint/fields/agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: cloud
title: Cloud
group: 2
description: Fields related to the cloud or infrastructure the events are coming from.
footnote: 'Examples: If Metricbeat is running on an EC2 host and fetches data from its host, the cloud info contains the data about this machine. If Metricbeat runs on a remote machine outside the cloud and fetches data from a service running in the cloud, the field contains cloud data from the machine the service is running on.'
type: group
fields:
- name: project.id
type: keyword
description: Name of the project in Google Cloud.
- name: image.id
type: keyword
description: Image ID for the cloud instance.
- name: host
title: Host
group: 2
description: 'A host is defined as a general computing instance. ECS host.* fields should be populated with details about the host on which the event happened, or from which the measurement was taken. Host types include hardware, virtual machines, Docker containers, and Kubernetes nodes.'
type: group
fields:
- name: containerized
type: boolean
description: >
If the host is a container.

- name: os.build
type: keyword
example: "18D109"
description: >
OS build information.

- name: os.codename
type: keyword
example: "stretch"
description: >-
OS codename, if any.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
- name: event.dataset
type: constant_keyword
description: Event dataset
value: http_endpoint.generic
- name: "@timestamp"
type: date
description: Event timestamp.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
- name: ecs.version
external: ecs
- name: event.code
external: ecs
- name: event.created
external: ecs
- name: log.level
external: ecs
- name: message
Expand Down
Loading