aboutsummaryrefslogtreecommitdiff
path: root/testdata/forwarderPostgresql_Forwards_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-18 01:32:59 +0700
committerShulhan <ms@kilabit.info>2024-03-18 21:55:35 +0700
commite6fed3ef602c587602a7e1eb1de303a0aafdc527 (patch)
treeed32fd9c50d82f63c58600a12b23b9daeb2af3a9 /testdata/forwarderPostgresql_Forwards_test.txt
parent0b791515c819b4742c95f98f970e838b3373b0ef (diff)
downloadhaminer-e6fed3ef602c587602a7e1eb1de303a0aafdc527.tar.xz
all: implement forwarder for Postgresql
The Postgresql forwarder accept single option "URL", [forwarder "postgresql"] url = postgres://<user>:<pass>@<host>/<database>?sslmode=<> The user and database must already created first, manually.
Diffstat (limited to 'testdata/forwarderPostgresql_Forwards_test.txt')
-rw-r--r--testdata/forwarderPostgresql_Forwards_test.txt133
1 files changed, 133 insertions, 0 deletions
diff --git a/testdata/forwarderPostgresql_Forwards_test.txt b/testdata/forwarderPostgresql_Forwards_test.txt
new file mode 100644
index 0000000..b936661
--- /dev/null
+++ b/testdata/forwarderPostgresql_Forwards_test.txt
@@ -0,0 +1,133 @@
+Test data for forwarding with Postgresql.
+
+>>> http_log.json
+[
+ {
+ "RequestDate": "2024-03-17T05:08:28.886Z",
+ "HeaderRequest": null,
+ "HeaderResponse": null,
+ "ClientIP": "169.254.63.64",
+ "FrontendName": "fe-http",
+ "BackendName": "be-http",
+ "ServerName": "be-http2",
+ "HTTPProto": "HTTP/1.1",
+ "HTTPMethod": "GET",
+ "HTTPURL": "/",
+ "HTTPQuery": "",
+ "CookieRequest": "-",
+ "CookieResponse": "-",
+ "TerminationState": "----",
+ "BytesRead": 149,
+ "StatusCode": 200,
+ "ClientPort": 52722,
+ "TimeRequest": 10,
+ "TimeWait": 20,
+ "TimeConnect": 30,
+ "TimeResponse": 40,
+ "TimeAll": 50,
+ "ConnActive": 1,
+ "ConnFrontend": 1,
+ "ConnBackend": 2,
+ "ConnServer": 3,
+ "Retries": 4,
+ "ServerQueue": 5,
+ "BackendQueue": 6
+ },
+ {
+ "RequestDate": "2024-03-17T05:09:00.006Z",
+ "HeaderRequest": null,
+ "HeaderResponse": null,
+ "ClientIP": "169.254.63.65",
+ "FrontendName": "fe-http",
+ "BackendName": "be-http",
+ "ServerName": "be-http1",
+ "HTTPProto": "HTTP/1.1",
+ "HTTPMethod": "GET",
+ "HTTPURL": "/",
+ "HTTPQuery": "",
+ "CookieRequest": "-",
+ "CookieResponse": "-",
+ "TerminationState": "----",
+ "BytesRead": 149,
+ "StatusCode": 200,
+ "ClientPort": 52723,
+ "TimeRequest": 11,
+ "TimeWait": 21,
+ "TimeConnect": 31,
+ "TimeResponse": 41,
+ "TimeAll": 51,
+ "ConnActive": 1,
+ "ConnFrontend": 1,
+ "ConnBackend": 2,
+ "ConnServer": 3,
+ "Retries": 4,
+ "ServerQueue": 5,
+ "BackendQueue": 6
+ }
+]
+
+<<< http_log.json
+[
+ {
+ "RequestDate": "2024-03-17T05:09:00.006Z",
+ "HeaderRequest": null,
+ "HeaderResponse": null,
+ "ClientIP": "169.254.63.65",
+ "FrontendName": "fe-http",
+ "BackendName": "be-http",
+ "ServerName": "be-http1",
+ "HTTPProto": "HTTP/1.1",
+ "HTTPMethod": "GET",
+ "HTTPURL": "/",
+ "HTTPQuery": "",
+ "CookieRequest": "-",
+ "CookieResponse": "-",
+ "TerminationState": "----",
+ "BytesRead": 149,
+ "StatusCode": 200,
+ "ClientPort": 52723,
+ "TimeRequest": 11,
+ "TimeWait": 21,
+ "TimeConnect": 31,
+ "TimeResponse": 41,
+ "TimeAll": 51,
+ "ConnActive": 1,
+ "ConnFrontend": 1,
+ "ConnBackend": 2,
+ "ConnServer": 3,
+ "Retries": 4,
+ "ServerQueue": 5,
+ "BackendQueue": 6
+ },
+ {
+ "RequestDate": "2024-03-17T05:08:28.886Z",
+ "HeaderRequest": null,
+ "HeaderResponse": null,
+ "ClientIP": "169.254.63.64",
+ "FrontendName": "fe-http",
+ "BackendName": "be-http",
+ "ServerName": "be-http2",
+ "HTTPProto": "HTTP/1.1",
+ "HTTPMethod": "GET",
+ "HTTPURL": "/",
+ "HTTPQuery": "",
+ "CookieRequest": "-",
+ "CookieResponse": "-",
+ "TerminationState": "----",
+ "BytesRead": 149,
+ "StatusCode": 200,
+ "ClientPort": 52722,
+ "TimeRequest": 10,
+ "TimeWait": 20,
+ "TimeConnect": 30,
+ "TimeResponse": 40,
+ "TimeAll": 50,
+ "ConnActive": 1,
+ "ConnFrontend": 1,
+ "ConnBackend": 2,
+ "ConnServer": 3,
+ "Retries": 4,
+ "ServerQueue": 5,
+ "BackendQueue": 6
+ }
+]