Ignition Log File grows too large

Hello All,

I have installed Ignition on Linux OS and I am using 7.3.7 version. And I am observing that my log file is growing too large. Can somebody help me how to set limit for this file?

Thanks,
AShish

Hello Guys,

I am really fed up with HTML ingition log files that are generated by Ignition which is killing my LAnner computer which has only 8GB of CF card.

From my search I came to know abt following info. Can you provide me any info how can I make changes in this File. I found this file ignition.conf in etc/ignition directory on my Fedora 14 OS LAnner PC.

I accessed the ignition.conf file in etc/ignition directory on IGP Lanner and found the way to change the Size of logging files, number of logging files to be created… etc…

Below is the section of this file which can be modified to change logging parameters or Am I Wrong?

#********************************************************************

Wrapper Logging Properties

#********************************************************************

Enables Debug output from the Wrapper.

wrapper.debug=TRUE

Format of output for the console. (See docs for formats)

wrapper.console.format=PM

Log Level for console output. (See docs for log levels)

wrapper.console.loglevel=INFO

Log file to use for wrapper output logging.

wrapper.logfile=/var/log/ignition/wrapper.log

Format of output for the log file. (See docs for formats)

wrapper.logfile.format=LPTM

Log Level for log file output. (See docs for log levels)

wrapper.logfile.loglevel=INFO

Maximum size that the log file will be allowed to grow to before

the log is rolled. Size is specified in bytes. The default value

of 0, disables log rolling. May abbreviate with the ‘k’ (kb) or

‘m’ (mb) suffix. For example: 10m = 10 megabytes.

wrapper.logfile.maxsize=10m

Maximum number of rolled log files which will be allowed before old

files are deleted. The default value of 0 implies no limit.

wrapper.logfile.maxfiles=5

Log Level for sys/event log output. (See docs for log levels)

wrapper.syslog.loglevel=NONE

Is this right way to stop generating HTML log files??

Thanks,
Ashish

I think there were some log file size control issues in some of the 7.3 releases. maybe an upgrade to a later 7.3 release would solve your issue. you could comb thru some of the release notes an see if you find anything.

To get rid of HTML file logging, what you really want to do is open data/log4j.properties and remove the FileAppender entry at the top of the file. For example, if you have:

log4j.rootLogger=INFO, FileAppender, SysoutAppender

Change the line so that it reads:

log4j.rootLogger=INFO, SysoutAppender

Restart your Gateway, and HTML-style log files should no longer appear.

Thanks mgross… I already did that and find no log files in /usr/local/bin/ignition/logs directory…

I found log4j.properties file in /etc/ignition directory.
Is this same directory u are talking about?? Or this file exists at some other directory also??

Sorry, I didn’t read your post closely enough to realize you had a Linux installation. Yes, /etc/ignition/log4j.properties is the one to modify.