NXLog采集windows日志配置conf文件
設備:win10專業版
配置文件內容:
This is a sample configuration file. See the nxlog reference manual about the
configuration options. It should be installed locally and is also available
online at http://nxlog.org/docs/
Please set the ROOT to the folder your nxlog was installed into,
otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT D:\Program Files (x86)\nxlog 本程序安裝路徑
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
#define LOGFILE C:\Program Files (x86)\nxlog\data\nxlog.log
#
#Module xm_fileop
Check the size of our log file every hour and rotate if it is larger than 1Mb
#
#Every 1 hour
#Exec if (file_size(’%LOGFILE%’) >= 1M) file_cycle(’%LOGFILE%’, 2);
#
Rotate our log file every week on sunday at midnight
#
#When @weekly
#Exec file_cycle(’%LOGFILE%’, 2);
#
#
#
#Module im_file
#File ‘C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20151217_130836\*.log’
#SavePos TRUE
#ReadFromLast TRUE
#Exec $raw_event = 'DbAppSOCAgent get log from “sqlserver” ’ + $raw_event;
#Exec log_info("raw event 3 is: " + $raw_event);
#
總結
以上是生活随笔為你收集整理的NXLog采集windows日志配置conf文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Kafka图形管理界面Kafka-eag
- 下一篇: 微信小程序 java运动健身课程打卡系统