Skip to content

Commit 75bcec9

Browse files
authored
Merge pull request #164 from CESNET/http_server_set_cookie
Server set cookie field extraction support in HTTP plugin
2 parents 7db08f2 + 5eef1fe commit 75bcec9

File tree

5 files changed

+537
-444
lines changed

5 files changed

+537
-444
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,17 @@ Fields without `_REV` suffix are fields from source flow. Fields with `_REV` are
242242
### HTTP
243243
List of unirec fields exported together with basic flow fields on interface by HTTP plugin.
244244

245-
| Output field | Type | Description |
246-
|:----------------------------:|:------:|:---------------------------:|
247-
| HTTP_REQUEST_METHOD | string | HTTP request method |
248-
| HTTP_REQUEST_HOST | string | HTTP request host |
249-
| HTTP_REQUEST_URL | string | HTTP request url |
250-
| HTTP_REQUEST_AGENT | string | HTTP request user agent |
251-
| HTTP_REQUEST_REFERER | string | HTTP request referer |
252-
| HTTP_RESPONSE_STATUS_CODE | uint16 | HTTP response code |
253-
| HTTP_RESPONSE_CONTENT_TYPE | string | HTTP response content type |
245+
| Output field | Type | Description |
246+
|:------------------------------:|:------:|:-----------------------------------------------------------:|
247+
| HTTP_REQUEST_METHOD | string | HTTP request method |
248+
| HTTP_REQUEST_HOST | string | HTTP request host |
249+
| HTTP_REQUEST_URL | string | HTTP request url |
250+
| HTTP_REQUEST_AGENT | string | HTTP request user agent |
251+
| HTTP_REQUEST_REFERER | string | HTTP request referer |
252+
| HTTP_RESPONSE_STATUS_CODE | uint16 | HTTP response code |
253+
| HTTP_RESPONSE_CONTENT_TYPE | string | HTTP response content type |
254+
| HTTP_RESPONSE_SERVER | string | HTTP response server |
255+
| HTTP_RESPONSE_SET_COOKIE_NAMES | string | HTTP response all set-cookie names separated by a delimiter |
254256

255257
### RTSP
256258
List of unirec fields exported together with basic flow fields on interface by RTSP plugin.

include/ipfixprobe/ipfix-elements.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ namespace ipxp {
124124
#define HTTP_STATUS(F) F(39499, 12, 2, nullptr)
125125
#define HTTP_USERAGENT(F) F(39499, 20, -1, nullptr)
126126
#define HTTP_METHOD(F) F(8057, 200, -1, nullptr)
127+
#define HTTP_SERVER(F) F(8057, 201, -1, nullptr)
128+
#define HTTP_SET_COOKIE_NAMES(F) F(8057, 202, -1, nullptr)
127129

128130
#define RTSP_METHOD(F) F(16982, 600, -1, nullptr)
129131
#define RTSP_USERAGENT(F) F(16982, 601, -1, nullptr)
@@ -325,7 +327,9 @@ namespace ipxp {
325327
F(HTTP_REFERER) \
326328
F(HTTP_URI) \
327329
F(HTTP_CONTENT_TYPE) \
328-
F(HTTP_STATUS)
330+
F(HTTP_STATUS) \
331+
F(HTTP_SERVER) \
332+
F(HTTP_SET_COOKIE_NAMES)
329333

330334
#define IPFIX_RTSP_TEMPLATE(F) \
331335
F(RTSP_METHOD) \

0 commit comments

Comments
 (0)