Skip to content

Commit 24de21e

Browse files
nkvollandrewkroh
andauthored
feat: add Agentless Hello World integration (#15729)
Co-authored-by: Andrew Kroh <[email protected]>
1 parent feb1b90 commit 24de21e

File tree

18 files changed

+363
-0
lines changed

18 files changed

+363
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/packages/abnormal_security @elastic/security-service-integrations
1414
/packages/activemq @elastic/obs-infraobs-integrations
1515
/packages/admin_by_request_epm @elastic/security-service-integrations
16+
/packages/agentless_hello_world @elastic/agentless-team
1617
/packages/airflow @elastic/obs-infraobs-integrations
1718
/packages/airlock_digital @elastic/security-service-integrations
1819
/packages/akamai @elastic/security-service-integrations
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies:
2+
ecs:
3+
reference: [email protected]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rules:
2+
- path: /
3+
methods: ["GET"]
4+
responses:
5+
- status_code: 418
6+
headers:
7+
Content-Type:
8+
- "application/json"
9+
body: |-
10+
{"this_is": "ignored"}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
services:
2+
epr_mock:
3+
image: docker.elastic.co/observability/stream:v0.18.0
4+
hostname: epr_mock
5+
ports:
6+
- 8080
7+
volumes:
8+
- ./config.yml:/config.yml
9+
environment:
10+
PORT: "8080"
11+
command:
12+
- http-server
13+
- --addr=:8080
14+
- --config=/config.yml
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- version: "0.1.0"
2+
changes:
3+
- description: Initial release.
4+
type: enhancement
5+
link: https://github.com/elastic/integrations/pull/15729
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"events": [
3+
{
4+
"http": {
5+
"response": {
6+
"status_code": 200
7+
}
8+
}
9+
}
10+
]
11+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fields: {}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"expected": [
3+
{
4+
"http": {
5+
"response": {
6+
"status_code": 200
7+
}
8+
},
9+
"ecs": {
10+
"version": "9.1.0"
11+
},
12+
"event": {
13+
"category": [
14+
"web"
15+
],
16+
"kind": "event",
17+
"type": [
18+
"info"
19+
]
20+
}
21+
}
22+
]
23+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
input: cel
2+
service: epr_mock
3+
data_stream:
4+
vars:
5+
url: http://{{Hostname}}:{{Port}}
6+
assert:
7+
hit_count: 1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
config_version: 2
2+
interval: 20s
3+
resource.timeout: 15s
4+
resource.url: "{{url}}"
5+
state:
6+
url: "{{url}}"
7+
program: |
8+
request("GET", state.url)
9+
.do_request()
10+
.as(resp, {
11+
"events": [{
12+
"http": {
13+
"response": {
14+
"status_code": resp.StatusCode
15+
}
16+
}
17+
}]
18+
})
19+
tags:
20+
- agentless-hello-world

0 commit comments

Comments
 (0)