Skip to content

Commit

Permalink
all: fix sample_event.json final newlines (#11174)
Browse files Browse the repository at this point in the history
This ensures that all sample_event.json files have no final new line,
and that the resulting generated README.md pre-blocks that show the
sample event do not include a final redundant blank line.

[git-generate]
parallel "perl -p -i -e 'chomp if eof'" {} ::: $(rg -l -U -g 'sample_event.json' '^}\n')
for d in $(git diff --name-only|cut -f1,2 -d/|sort|uniq); do (cd $d; elastic-package build); done
  • Loading branch information
efd6 authored Sep 23, 2024
1 parent 2d91393 commit 073ee2a
Show file tree
Hide file tree
Showing 316 changed files with 232 additions and 404 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@
"user": {
"id": "GLF6WUEKS5CSNDJ2OG6TCZD3M4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
"full_name": "Name",
"id": "OJQGU46KAPROEJLCK674RHSAY5"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@
"full_name": "Name",
"id": "OJQGU46KAPROEJLCK674RHSAY5"
}
}
}
3 changes: 0 additions & 3 deletions packages/1password/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ An example event for `signin_attempts` looks as following:
"id": "OJQGU46KAPROEJLCK674RHSAY5"
}
}

```

### Item Usages
Expand Down Expand Up @@ -242,7 +241,6 @@ An example event for `item_usages` looks as following:
"id": "OJQGU46KAPROEJLCK674RHSAY5"
}
}

```


Expand Down Expand Up @@ -374,5 +372,4 @@ An example event for `audit_events` looks as following:
"id": "GLF6WUEKS5CSNDJ2OG6TCZD3M4"
}
}

```
2 changes: 1 addition & 1 deletion packages/akamai/data_stream/siem/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@
"port": 80,
"query": "a=../../../etc/passwd"
}
}
}
1 change: 0 additions & 1 deletion packages/akamai/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,4 @@ An example event for `siem` looks as following:
"query": "a=../../../etc/passwd"
}
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@
"id": "2",
"name": "admin"
}
}
}
1 change: 0 additions & 1 deletion packages/atlassian_bitbucket/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,4 @@ An example event for `audit` looks as following:
"name": "admin"
}
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@
"user": {
"full_name": "System"
}
}
}
1 change: 0 additions & 1 deletion packages/atlassian_confluence/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,4 @@ An example event for `audit` looks as following:
"full_name": "System"
}
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@
"id": "-2",
"name": "Anonymous"
}
}
}
1 change: 0 additions & 1 deletion packages/atlassian_jira/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,4 @@ An example event for `audit` looks as following:
"name": "Anonymous"
}
}

```
2 changes: 1 addition & 1 deletion packages/auditd/data_stream/log/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
"tags": [
"auditd-log"
]
}
}
1 change: 0 additions & 1 deletion packages/auditd/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ An example event for `log` looks as following:
"auditd-log"
]
}

```

**Exported fields**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@
"id": "0",
"name": "root"
}
}
}
1 change: 0 additions & 1 deletion packages/auditd_manager/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ An example event for `auditd` looks as following:
"name": "root"
}
}
```

**Exported fields**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/data_stream/cloudfront_logs/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@
},
"version": "78.0.3904.108"
}
}
}
1 change: 0 additions & 1 deletion packages/aws/docs/cloudfront.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,4 @@ An example event for `cloudfront` looks as following:
"version": "78.0.3904.108"
}
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@
},
"version": "96.0.4664.93"
}
}
}
2 changes: 1 addition & 1 deletion packages/azure_frontdoor/data_stream/waf/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
"domain": "connect.testcloud.com",
"original": "https://connect.testcloud.com:443/connect_v2/module001/serviceAttendance/checkvalidUser1"
}
}
}
2 changes: 1 addition & 1 deletion packages/barracuda/data_stream/waf/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
"barracuda-waf",
"forwarded"
]
}
}
1 change: 0 additions & 1 deletion packages/barracuda/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ An example event for `waf` looks as following:
"forwarded"
]
}

```

**Exported fields**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
"barracuda_cloudgen_firewall-log",
"forwarded"
]
}
}
1 change: 0 additions & 1 deletion packages/barracuda_cloudgen_firewall/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ An example event for `log` looks as following:
"forwarded"
]
}

```

**Exported fields**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
"preserve_original_event",
"forwarded"
]
}
}
1 change: 0 additions & 1 deletion packages/bitdefender/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -693,5 +693,4 @@ An example event for `push_statistics` looks as following:
"forwarded"
]
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
"forwarded",
"bitwarden-collection"
]
}
}
2 changes: 1 addition & 1 deletion packages/bitwarden/data_stream/event/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@
"user": {
"id": "e68b8629-85eb-4929-92c0-b84464976ba4"
}
}
}
2 changes: 1 addition & 1 deletion packages/bitwarden/data_stream/group/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
"forwarded",
"bitwarden-group"
]
}
}
2 changes: 1 addition & 1 deletion packages/bitwarden/data_stream/member/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@
"id": "1234",
"name": "John Smith"
}
}
}
2 changes: 1 addition & 1 deletion packages/bitwarden/data_stream/policy/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
"forwarded",
"bitwarden-policy"
]
}
}
5 changes: 0 additions & 5 deletions packages/bitwarden/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ An example event for `collection` looks as following:
"bitwarden-collection"
]
}

```

**Exported fields**
Expand Down Expand Up @@ -236,7 +235,6 @@ An example event for `event` looks as following:
"id": "e68b8629-85eb-4929-92c0-b84464976ba4"
}
}

```

**Exported fields**
Expand Down Expand Up @@ -343,7 +341,6 @@ An example event for `group` looks as following:
"bitwarden-group"
]
}

```

**Exported fields**
Expand Down Expand Up @@ -460,7 +457,6 @@ An example event for `member` looks as following:
"name": "John Smith"
}
}

```

**Exported fields**
Expand Down Expand Up @@ -572,7 +568,6 @@ An example event for `policy` looks as following:
"bitwarden-policy"
]
}

```

**Exported fields**
Expand Down
2 changes: 1 addition & 1 deletion packages/box_events/data_stream/events/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,4 @@
"name": "Some user"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@
"forwarded",
"carbon_black_cloud-endpoint-event"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@
"forwarded",
"carbon_black_cloud-watchlist-hit"
]
}
}
2 changes: 0 additions & 2 deletions packages/carbon_black_cloud/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,6 @@ An example event for `endpoint_event` looks as following:
"carbon_black_cloud-endpoint-event"
]
}

```

**Exported fields**
Expand Down Expand Up @@ -1037,7 +1036,6 @@ An example event for `watchlist_hit` looks as following:
"carbon_black_cloud-watchlist-hit"
]
}

```

**Exported fields**
Expand Down
2 changes: 1 addition & 1 deletion packages/carbonblack_edr/data_stream/log/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@
"type": "file"
}
}
}
}
1 change: 0 additions & 1 deletion packages/carbonblack_edr/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ An example event for `log` looks as following:
}
}
}

```

**Exported fields**
Expand Down
2 changes: 1 addition & 1 deletion packages/cef/data_stream/log/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@
"url": {
"original": "https://www.example.com/cart"
}
}
}
1 change: 0 additions & 1 deletion packages/cef/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ An example event for `log` looks as following:
"original": "https://www.example.com/cart"
}
}

```

**Exported fields**
Expand Down
2 changes: 1 addition & 1 deletion packages/checkpoint/data_stream/firewall/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
"tags": [
"forwarded"
]
}
}
1 change: 0 additions & 1 deletion packages/checkpoint/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ An example event for `firewall` looks as following:
"forwarded"
]
}

```

**Exported fields**
Expand Down
2 changes: 1 addition & 1 deletion packages/cisco_aironet/data_stream/log/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
"cisco-aironet",
"forwarded"
]
}
}
1 change: 0 additions & 1 deletion packages/cisco_aironet/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ An example event for `log` looks as following:
"forwarded"
]
}

```

**Exported fields**
Expand Down
2 changes: 1 addition & 1 deletion packages/cisco_duo/data_stream/admin/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
"user": {
"name": "narroway"
}
}
}
2 changes: 1 addition & 1 deletion packages/cisco_duo/data_stream/auth/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@
},
"version": "67.0.3396.99"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
"user": {
"name": "narroway"
}
}
}
2 changes: 1 addition & 1 deletion packages/cisco_duo/data_stream/summary/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"forwarded",
"cisco_duo-summary"
]
}
}
Loading

0 comments on commit 073ee2a

Please sign in to comment.