userguide: ftp formatting updates

pull/4046/head
Jeff Lucovsky 7 years ago committed by Victor Julien
parent 2149807bd6
commit c68510437f

@ -542,7 +542,8 @@ Fields
* "command": The FTP command. * "command": The FTP command.
* "command_data": The data accompanying the command. * "command_data": The data accompanying the command.
* "reply": The command reply, which may contain multiple lines, in array format. * "reply": The command reply, which may contain multiple lines, in array format.
* "completion_code": The 3-digit completion code. The first digit indicates whether the response is good, bad or incomplete. * "completion_code": The 3-digit completion code. The first digit indicates whether the response is good, bad or incomplete. This
is also in array format and may contain multiple completion codes matching multiple reply lines.
* "dynamic_port": The dynamic port established for subsequent data transfers, when applicable, with a "PORT" or "EPRT" command. * "dynamic_port": The dynamic port established for subsequent data transfers, when applicable, with a "PORT" or "EPRT" command.
* "mode": The type of FTP connection. Most connections are "passive" but may be "active". * "mode": The type of FTP connection. Most connections are "passive" but may be "active".
* "reply_received": Indicates whether a response was matched to the command. In some non-typical cases, a command may lack a response. * "reply_received": Indicates whether a response was matched to the command. In some non-typical cases, a command may lack a response.
@ -557,15 +558,17 @@ Example of regular FTP logging:
"ftp": { "ftp": {
"command": "RETR", "command": "RETR",
"command_data": "index.html", "command_data": "100KB.zip",
"reply": [ "reply": [
"Opening BINARY mode data connection for index.html (6712 bytes)", "Opening BINARY mode data connection for 100KB.zip (102400 bytes).",
"Transfer complete" "Transfer complete."
],
"completion_code": [
"150",
"226"
], ],
"completion_code": "150"
}
Example showing all fields Example showing all fields:
:: ::
@ -573,11 +576,14 @@ Example showing all fields
"command": "EPRT", "command": "EPRT",
"command_data": "|2|2a01:e34:ee97:b130:8c3e:45ea:5ac6:e301|41813|", "command_data": "|2|2a01:e34:ee97:b130:8c3e:45ea:5ac6:e301|41813|",
"reply": [ "reply": [
"EPRT command successful. Consider using EPSV" "EPRT command successful. Consider using EPSV."
],
"completion_code": [
"200"
], ],
"reply_code": "200",
"dynamic_port": 41813, "dynamic_port": 41813,
"mode": "active" "mode": "active",
"reply_received": "yes"
} }
Event type: FTP_DATA Event type: FTP_DATA
@ -589,7 +595,6 @@ Fields
* "command": The FTP command associated with the event. * "command": The FTP command associated with the event.
* "filename": The name of the involved file. * "filename": The name of the involved file.
Examples Examples
~~~~~~~~ ~~~~~~~~

Loading…
Cancel
Save