安裝完成後,liagent.ini 檔案將包含為 Log Insight Linux Agent預先設定的預設設定。

vRealize Log Insight Linux 代理程式 liagent.ini 預設組態

如果您使用非 ASCII 名稱和值,將組態儲存為 UTF-8。

如果您使用中央組態,最終的組態即為此使用伺服器設定所加入的檔案以形成 liagent-effective.ini 檔案。

您會發現從伺服器的代理程式頁面進行設定會更有效。

[server]
; Hostname or IP address of your Log Insight server / cluster load balancer. Default:
;hostname=LOGINSIGHT

;Enables or deactivates centralized configuration from the vRealize Log Insight server. 
;When enabled, agent configuration changes made to the liagent.ini file on the server
;are joined with the settings in this file. to this agent. Accepted values are yes or no and  0 or 1. 
;The default is yes.
;
;central_config=yes
;
;
; Protocol can be cfapi (Log Insight REST API), syslog. Default:
;proto=cfapi

; Log Insight server port to connect to. Default ports for protocols (all TCP):
; syslog: 514; syslog with ssl: 6514; cfapi: 9000; cfapi with ssl: 9543. Default:
;port=9543

; SSL usage. Default:
;ssl=yes 
; Example of configuration with trusted CA:
;ssl=yes
;ssl_ca_path=/etc/pki/tls/certs/ca.pem

; Time in minutes to force reconnection to the server.
; This option mitigates imbalances caused by long-lived TCP connections. Default:
;reconnect=30

; FIPS mode.
; Possible values are 1 or 0. If omitted the default value is 1.
; ssl_fips_mode=1

[logging]
; Logging verbosity: 0 (no debug messages), 1 (essentials), 2 (verbose with more impact on performance).
; This option should always be 0 under normal operating conditions. Default:
;debug_level=0

[storage]
; Max local storage usage limit (data + logs) in MBs. Valid range: 100-2000 MB.
;max_disk_buffer=2000

; Uncomment the appropriate section to collect system logs
; The recommended way is to enable the Linux content pack from LI server
;[filelog|syslog]
;directory=/var/log
;include=messages;messages.?;syslog;syslog.?
參數 預設值 說明
hostname LOGINSIGHT

vRealize Log Insight 虛擬應用裝置的 IP 位址或主機名稱。

預設值為 loginsight

central_config yes

啟用或停用此代理程式的集中式組態。停用集中式組態時,代理程式會忽略 vRealize Log Insight 伺服器所提供的組態。接受的值為 yesno10。預設值為 yes

proto cfapi

代理程式用來傳送記錄事件至 vRealize Log Insight 伺服器的通訊協定。可能的值為 cfapisyslog

預設值為 cfapi。

port 9543、9000、6514 和 514 代理程式用於傳送事件至 vRealize Log Insight 伺服器的通訊連接埠。對於啟用 SSL 的 cfapi,預設值為 9543;對於停用 SSL 的 cfapi,預設值為 9000;對於啟用 SSL 的 Syslog,預設值為 6514;對於停用 SSL 的 Syslog,預設值為 514。
ssl yes 啟用或停用 SSL。預設值為 yes。

ssl 設為「yes」時,如果您沒有為連接埠設定一個值,連接埠會自動選取為 9543。

max_disk_buffer 200 Log Insight Linux Agent用於緩衝事件及其自身記錄檔的最大磁碟空間 (以 MB 為單位)。

達到指定的 max_disk_buffer 後,代理程式將開始捨棄新的傳入事件。

debug_level 0 定義記錄詳細資料層級。請參閱定義 Log Insight Agents中的記錄詳細資料層級
ssl_fips_mode 1 透過 liagent.ini 檔案,針對 Log Insight Linux Agent啟用或停用 FIPS 模式。接受的值為 1 和 0。