Commit 54fefd3
authored
ti_*: Allow transforms to run unattended mode (#16535)
ti_*: Allow transforms to run unattended mode
Right now transforms require manual intervention to
restart them whenever there is network instability.
This PR adds "settings.unattended = true" for all "ti_*"
transforms to allow them auto-recover. Although the
ideal way to solve this is by setting
"settings.num_failure_retries: -1", it is not allowed
by Transform API or package-spec yet.
[git-generate]
for transform in $(find packages/ti_*/ -type f -name transform.yml); do
yq -i '.settings.unattended = true' "$transform"
done
for upd_transform in $(git diff --name-only packages/ | grep 'transform\.yml$'); do
current_version=$(yq '._meta.fleet_transform_version' "$upd_transform")
new_version=$(echo "$current_version" | awk -F. '{printf "%d.%d.%d", $1, $2+1, 0}')
yq -i "._meta.fleet_transform_version = \"$new_version\"" "$upd_transform"
echo "Updated $upd_transform: $current_version -> $new_version"
done
for package in $(git diff --name-only packages/ | cut -d'/' -f1,2 | sort -u) ; do
cd $package && elastic-package changelog add --description "Allow transforms to run unattended mode." --type enhancement --next minor --link #16535
cd ../../
done1 parent 98c2dc1 commit 54fefd3
67 files changed
Lines changed: 212 additions & 69 deletions
File tree
- packages
- ti_abusech
- elasticsearch/transform
- latest_ja3_fingerprints
- latest_malwarebazaar
- latest_malware
- latest_sslblacklist
- latest_threatfox
- latest_url
- ti_anomali
- elasticsearch/transform
- latest_intelligence
- latest_ioc
- ti_cif3
- elasticsearch/transform/latest_threat
- ti_custom
- elasticsearch/transform/latest_ioc
- ti_cybersixgill
- elasticsearch/transform/latest_ioc
- ti_domaintools
- elasticsearch/transform
- latest_domaindiscovery
- latest_domainhotlist
- latest_domainrdap
- latest_domainrisk
- latest_nad
- latest_nod
- ti_eclecticiq
- elasticsearch/transform/latest_ioc
- ti_eset
- elasticsearch/transform
- apt_latest_ioc
- botnet_latest_ioc
- cc_latest_ioc
- domains_latest_ioc
- files_latest_ioc
- ip_latest_ioc
- url_latest_ioc
- ti_maltiverse
- elasticsearch/transform/latest
- ti_misp
- elasticsearch/transform/latest_ioc
- ti_opencti
- elasticsearch/transform/latest_ioc
- ti_otx
- elasticsearch/transform/latest_ioc
- ti_rapid7_threat_command
- elasticsearch/transform
- latest_alert
- latest_ioc
- latest_vulnerability
- ti_recordedfuture
- elasticsearch/transform/latest_ioc
- ti_threatconnect
- elasticsearch/transform/latest
- ti_threatq
- elasticsearch/transform/latest_ioc
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 76 | + | |
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments