get_log_file
To get FE log via HTTP
Types of FE log
fe.audit.log (Audit log)
The audit log records the all statements executed. Audit log’s name format as follow:
fe.audit.log # The latest audit logfe.audit.log.20190603.1 # The historical audit log. The smaller the sequence number, the newer the log.fe.audit.log.20190603.2fe.audit.log.20190602.1...
Example
Get the list of specified type of logs
Example
curl -v -X HEAD -uuser:passwd http://fe_host:http_port/api/get_log_file?type=fe.audit.logReturns:
HTTP/1.1 200 OKfile_infos: {"fe.audit.log":24759,"fe.audit.log.20190528.1":132934}content-type: text/htmlconnection: keep-alive
In the header of result, the
file_infossection saves the file list and file size in JSON format.Download files
Example:
curl -X GET -uuser:passwd http://fe_host:http_port/api/get_log_file?type=fe.audit.log\&file=fe.audit.log.20190528.1
Notification
Need ADMIN priviledge.