mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Update the config file.
This commit is contained in:
+32
-21
@@ -7,32 +7,42 @@
|
||||
"recognize-tcp-sessions": false,
|
||||
"http-pprof": "",
|
||||
"input-dummy": null,
|
||||
"OutputDummy": null,
|
||||
"output-dummy": [
|
||||
"[]"
|
||||
],
|
||||
"output-stdout": false,
|
||||
"output-null": false,
|
||||
"input-tcp": null,
|
||||
"InputTCPConfig": {
|
||||
"input-tcp": [
|
||||
"[]"
|
||||
],
|
||||
"input-tcp-config": {
|
||||
"input-tcp-secure": false,
|
||||
"input-tcp-certificate": "",
|
||||
"input-tcp-certificate-key": ""
|
||||
},
|
||||
"output-tcp": null,
|
||||
"OutputTCPConfig": {
|
||||
"output-tcp": [
|
||||
"[]"
|
||||
],
|
||||
"output-tcp-config": {
|
||||
"output-tcp-secure": false,
|
||||
"output-tcp-sticky": false
|
||||
},
|
||||
"output-tcp-stats": false,
|
||||
"input-file": null,
|
||||
"input-file": [
|
||||
"[]"
|
||||
],
|
||||
"input-file-loop": false,
|
||||
"output-file": null,
|
||||
"OutputFileConfig": {
|
||||
"output-file": [
|
||||
"[]"
|
||||
],
|
||||
"output-file-config": {
|
||||
"output-file-flush-interval": 1000000000,
|
||||
"output-file-queue-limit": 256,
|
||||
"output-file-append": false,
|
||||
"output-file-buffer": "/tmp"
|
||||
},
|
||||
"input_raw": null,
|
||||
"InputRAWConfig": {
|
||||
"input-raw-config": {
|
||||
"input-raw-engine": "libpcap",
|
||||
"input-raw-track-response": false,
|
||||
"input-raw-realip-header": "",
|
||||
@@ -41,7 +51,6 @@
|
||||
"input-raw-bpf-filter": "",
|
||||
"input-raw-timestamp-type": "",
|
||||
"input-raw-immediate-mode": false,
|
||||
"BufferSize": 0,
|
||||
"input-raw-override-snaplen": false,
|
||||
"input-raw-buffer-size": "0"
|
||||
},
|
||||
@@ -49,35 +58,37 @@
|
||||
"output-file-max-size-limit": "1TB",
|
||||
"copy-buffer-size": "5mb",
|
||||
"middleware": "",
|
||||
"InputHTTP": null,
|
||||
"output-http": null,
|
||||
"input-http": null,
|
||||
"output-http": [
|
||||
"[]"
|
||||
],
|
||||
"prettify-http": false,
|
||||
"OutputHTTPConfig": {
|
||||
"output-http-config": {
|
||||
"output-http-redirect-limit": 0,
|
||||
"output-http-stats": false,
|
||||
"output-http-workers-min": 0,
|
||||
"output-http-workers": 0,
|
||||
"output-http-stats-ms": 5000,
|
||||
"Workers": 0,
|
||||
"output-http-queue-len": 1000,
|
||||
"output-http-elasticsearch": "",
|
||||
"output-http-timeout": 5000000000,
|
||||
"output-http-original-host": false,
|
||||
"output-http-response-buffer": 0,
|
||||
"output-http-compatibility-mode": false,
|
||||
"RequestGroup": "",
|
||||
"output-http-debug": false,
|
||||
"output-http-track-response": false
|
||||
},
|
||||
"output-binary": null,
|
||||
"OutputBinaryConfig": {
|
||||
"output-binary": [
|
||||
"[]"
|
||||
],
|
||||
"output-binary-config": {
|
||||
"output-binary-workers": 0,
|
||||
"output-binary-timeout": 0,
|
||||
"output-tcp-response-buffer": 0,
|
||||
"output-binary-debug": false,
|
||||
"output-binary-track-response": false
|
||||
},
|
||||
"ModifierConfig": {
|
||||
"modifier-config": {
|
||||
"http-disallow-url": null,
|
||||
"http-allow-url": null,
|
||||
"http-rewrite-url": null,
|
||||
@@ -91,17 +102,17 @@
|
||||
"http-set-header": null,
|
||||
"http-allow-method": null
|
||||
},
|
||||
"InputKafkaConfig": {
|
||||
"input-kafka-config": {
|
||||
"input-kafka-host": "",
|
||||
"input-kafka-topic": "",
|
||||
"input-kafka-json-format": false
|
||||
},
|
||||
"OutputKafkaConfig": {
|
||||
"output-kafka-config": {
|
||||
"output-kafka-host": "",
|
||||
"output-kafka-topic": "",
|
||||
"output-kafka-json-format": false
|
||||
},
|
||||
"config-file": "config.json",
|
||||
"config-server-address": ":9999",
|
||||
"config-remote-host": "http://localhost:8000"
|
||||
"config-remote-host": ""
|
||||
}
|
||||
+1
-5
@@ -1297,10 +1297,6 @@ func flagz(res http.ResponseWriter, req *http.Request) {
|
||||
if req.Method == "POST" {
|
||||
res.Write([]byte(readAndUpdateConfig(req.Body).Error()))
|
||||
}
|
||||
Settings.RLock()
|
||||
data, _ := json.MarshalIndent(Settings, "", " ")
|
||||
Settings.RUnlock()
|
||||
res.Write(data)
|
||||
|
||||
for k, v := range req.URL.Query() {
|
||||
if len(v) == 1 {
|
||||
@@ -1320,7 +1316,7 @@ func flagz(res http.ResponseWriter, req *http.Request) {
|
||||
res.Write([]byte(readAndUpdateConfig(req.Body).Error()))
|
||||
}
|
||||
Settings.RLock()
|
||||
data, _ = json.MarshalIndent(Settings, "", " ")
|
||||
data, _ := json.MarshalIndent(Settings, "", " ")
|
||||
Settings.RUnlock()
|
||||
res.Write(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user