hello, the problem about *.log was truncated, restarting from beginning

View thread

alexchen123

 



the log:



2017-04-01 10:08:29 INFO nxlog-ce-2.8.1248 started

2017-04-01 10:10:18 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:10:28 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:10:32 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:10:36 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:10:42 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:10:48 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:10:54 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:11:14 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:11:22 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:11:30 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:11:46 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning

2017-04-01 10:11:52 INFO last message repeated 2 times

2017-04-01 10:11:58 INFO input file /u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log was truncated, restarting from beginning



how to adjust the command about nxlog.conf?,Thanks



my nxlog.conf:



## This is a sample configuration file. See the nxlog reference manual about the

## configuration options. It should be installed locally under

## /usr/share/doc/nxlog-ce/ and is also available online at

## http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html



########################################

# Global directives                    #

########################################

User nxlog

Group nxlog



LogFile /var/log/nxlog/nxlog.log

LogLevel INFO



########################################

# Modules                              #

########################################

<Extension _syslog>

    Module      xm_syslog

</Extension>



<Extension multiline>

 Module xm_multiline

 HeaderLine /^\w{3}\s\w{3}\s\d{2}\s\d{2}:\d{2}:\d{2}\s\d{4}/

</Extension>



<Input oerrorin1>

 Module    im_file

 File     '/u01/app/oracle/diag/rdbms/testdb/testdb/trace/alert_testdb.log'

 InputType multiline

 SavePos TRUE

 ReadFromLast  FALSE

</Input>



<Output udpout>

 Module    om_udp

 Host   XXXXXXXXX

 Port   514

</Output>





########################################

# Routes                               #

########################################

<Route 1>

    Path        oerrorin1 =>udpout

</Route>