-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSAP-LogServ.http
More file actions
47 lines (42 loc) · 1.88 KB
/
SAP-LogServ.http
File metadata and controls
47 lines (42 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### SAP LogServ REST Client
### This file can be used with the REST Client extension in VS Code
### Variables
### Azure AD Tenant ID (GUID format)
@Entra-ID-tenant = 12345678-1234-1234-1234-123456789abc
### Azure App Registration Client ID
@LogServ-Entra-App-Id = 87654321-4321-4321-4321-abcdef123456
### Azure App Registration Client Secret
@LogServ-Entra-App-Secret = ABC123~def456GHI789jkl012MNO345pqr678STU901
### Data Collection Endpoint hostname (without https://)
@DCE-hostname = dce-sample-hostname-1234.region-1
### Data Collection Rule immutable ID
@DCR-immutable-id = dcr-abcd1234efgh5678ijkl9012mnop3456
### Auto-populated from token request
@bearerToken = {{getEntraToken.response.body.access_token}}
### Get Entra Token
# @name getEntraToken
POST https://login.microsoftonline.com/{{Entra-ID-tenant}}/oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded
client_id={{LogServ-Entra-App-Id}}
&client_secret={{LogServ-Entra-App-Secret}}
&scope=https://monitor.azure.com/.default
&grant_type=client_credentials
### Smoke Test
# @name smokeTest
POST https://{{DCE-hostname}}.ingest.monitor.azure.com/dataCollectionRules/{{DCR-immutable-id}}/streams/Custom-SAPLogServ_CL?api-version=2023-01-01
Authorization: Bearer {{bearerToken}}
Content-Type: application/json
[
{
"_time": {{$timestamp}},
"host": "hec53v013858",
"_raw": "2023-05-15T01:15:19.548148+00:00 hec53v013858 kernel: [217869.768664] FWD_DROP IN=eth0 OUT=vti1 MAC=02:6f:66:44:44:cc:02:81:12:21:97:60:08:00 SRC=10.186.74.172 DST=147.204.150.31 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=26760 DF PROTO=TCP SPT=15080 DPT=8065 WINDOW=26883 RES=0x00 SYN URGP=0 ",
"source": "/var/log/firewall",
"cribl_breaker": "fallback",
"index": "hec53_os",
"sourcetype": "linux_secure",
"clz_dir": "linux",
"clz_subdir": "linux_secure",
"cribl_pipe": "CGS_filemonitor_P"
}
]