-
Notifications
You must be signed in to change notification settings - Fork 0
/
Splunk HEC.postman_collection.json
149 lines (149 loc) · 2.92 KB
/
Splunk HEC.postman_collection.json
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"info": {
"_postman_id": "64a47249-893d-49d8-9741-2dd91a35d5a7",
"name": "Splunk HEC",
"description": "SPLUNK HEC (Http Event Collector)\n\nCollection created as a sample on how to send data to Splunk using http requests.\n\nThis collections was created by Fábio Caldas (splunk@fabiocaldas.com).",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Send JSON Data",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Splunk {{token}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"event\": \"hello world\"}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{host}}:{{port}}/{{endpoint_json}}",
"protocol": "{{protocol}}",
"host": [
"{{host}}"
],
"port": "{{port}}",
"path": [
"{{endpoint_json}}"
]
}
},
"response": []
},
{
"name": "Send RAW Data",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"type": "text",
"value": "Splunk {{token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "text/plain"
}
],
"body": {
"mode": "raw",
"raw": "hello world",
"options": {
"raw": {
"language": "text"
}
}
},
"url": {
"raw": "{{protocol}}://{{host}}:{{port}}/{{endpoint_raw}}",
"protocol": "{{protocol}}",
"host": [
"{{host}}"
],
"port": "{{port}}",
"path": [
"{{endpoint_raw}}"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "9f104752-cc74-4f58-b981-821ad7e5f144",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "6ea76021-7cfd-4e62-911e-e62d9048c93d",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "92e88f2c-b775-4fac-b152-33f29a36193e",
"key": "protocol",
"value": "https",
"type": "string"
},
{
"id": "cd656ba6-6ba5-45a4-a73f-4d4016e76493",
"key": "host",
"value": "localhost",
"type": "string"
},
{
"id": "84a33ea0-8b89-4df0-b7cf-cf586f5191a6",
"key": "port",
"value": "8088",
"type": "string"
},
{
"id": "786ea985-aff2-42c2-af19-a3facf51c3e6",
"key": "endpoint_json",
"value": "/services/collector",
"type": "string"
},
{
"id": "1edd9c28-34e1-46c3-a646-9ce06074483b",
"key": "endpoint_raw",
"value": "services/collector/raw",
"type": "string"
},
{
"id": "d055d814-2b93-4f0d-bf08-35e716581c27",
"key": "token",
"value": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"type": "string"
}
],
"protocolProfileBehavior": {}
}