Skip to content

Commit af3f59b

Browse files
committed
add comment warnings to generated snippets
1 parent 37aaa02 commit af3f59b

File tree

87 files changed

+1042
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1042
-54
lines changed

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example1-curl.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```bash
26
curl -X PUT "$ELASTICSEARCH_URL/windows-security-logs" \
37
-H "Authorization: ApiKey $ELASTIC_API_KEY" \

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example1-js.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```js
26
const { Client } = require("@elastic/elasticsearch");
37

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example1-php.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```php
26
<?php
37

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example1-python.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```python
26
import os
37
from elasticsearch import Elasticsearch

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example1-ruby.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```ruby
26
require "elasticsearch"
37

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```bash
26
curl -X POST "$ELASTICSEARCH_URL/_bulk?refresh=wait_for" \
37
-H "Authorization: ApiKey $ELASTIC_API_KEY" \
48
-H "Content-Type: application/x-ndjson" \
5-
-d $'{"index":{"_index":"asset-inventory"}}\n{"host.name":"WS-001","asset.criticality":"medium","asset.owner":"IT","asset.department":"finance"}\n{"index":{"_index":"asset-inventory"}}\n{"host.name":"SRV-001","asset.criticality":"high","asset.owner":"IT","asset.department":"operations"}\n{"index":{"_index":"asset-inventory"}}\n{"host.name":"DB-001","asset.criticality":"critical","asset.owner":"DBA","asset.department":"finance"}\n{"index":{"_index":"asset-inventory"}}\n{"host.name":"DC-001","asset.criticality":"critical","asset.owner":"IT","asset.department":"infrastructure"}\n{"index":{"_index":"user-context"}}\n{"user.name":"jsmith","user.role":"analyst","user.department":"finance","user.privileged":false}\n{"index":{"_index":"user-context"}}\n{"user.name":"admin","user.role":"administrator","user.department":"IT","user.privileged":true}\n{"index":{"_index":"threat-intel"}}\n{"indicator.value":"185.220.101.45","indicator.type":"ip","threat.name":"APT-29","threat.severity":"high"}\n{"index":{"_index":"threat-intel"}}\n{"indicator.value":"powershell.exe","indicator.type":"process","threat.name":"Living off the Land","threat.severity":"medium"}\n'
9+
-d $'{"index":{"_index":"asset-inventory"}}
10+
{"host.name":"WS-001","asset.criticality":"medium","asset.owner":"IT","asset.department":"finance"}
11+
{"index":{"_index":"asset-inventory"}}
12+
{"host.name":"SRV-001","asset.criticality":"high","asset.owner":"IT","asset.department":"operations"}
13+
{"index":{"_index":"asset-inventory"}}
14+
{"host.name":"DB-001","asset.criticality":"critical","asset.owner":"DBA","asset.department":"finance"}
15+
{"index":{"_index":"asset-inventory"}}
16+
{"host.name":"DC-001","asset.criticality":"critical","asset.owner":"IT","asset.department":"infrastructure"}
17+
{"index":{"_index":"user-context"}}
18+
{"user.name":"jsmith","user.role":"analyst","user.department":"finance","user.privileged":false}
19+
{"index":{"_index":"user-context"}}
20+
{"user.name":"admin","user.role":"administrator","user.department":"IT","user.privileged":true}
21+
{"index":{"_index":"threat-intel"}}
22+
{"indicator.value":"185.220.101.45","indicator.type":"ip","threat.name":"APT-29","threat.severity":"high"}
23+
{"index":{"_index":"threat-intel"}}
24+
{"indicator.value":"powershell.exe","indicator.type":"process","threat.name":"Living off the Land","threat.severity":"medium"}
25+
'
626
```

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example10-js.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```js
26
const response = await client.bulk({
37
refresh: "wait_for",

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example10-php.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```php
26
$resp = $client->bulk([
37
"refresh" => "wait_for",

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example10-python.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```python
26
resp = client.bulk(
37
refresh="wait_for",

solutions/security/esql-for-security/_snippets/esql-threat-hunting-tutorial/example10-ruby.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```ruby
26
response = client.bulk(
37
refresh: "wait_for",

0 commit comments

Comments
 (0)