thank you for option.
On Mon, Nov 18, 2013 at 12:42 PM, David Lang <[email protected]> wrote: > Ok, I would suggest that you reach out to the glassfish community, what > this is offering is extremely hard to deal with. > > The fact that it names each file by date is something that rsyslog is not > able to deal with, even if there wasn't a date in the filename, and rsyslog > could watch the file, the timestamp that rsyslog would use would be the > timestamp of when rsyslog read the log from the file, not the timestamp > that glassfish put into the file. > > One trick I've pulled in similar situations is to tell the application not > to rotate it's logs at all, and then replaced the file that it's configured > to write with a named pipe, and then had something listen to the named pipe > and format the messages for syslog and send them. > > This sort of thing is ugly, but when you have a horribly behaved app, it > may be your only option. > > David Lang > > > On Mon, 18 Nov 2013, Tseveendorj Ochirlantuu wrote: > > glassfish access log generated into >> >> /PATH/glassfish/InstalledDir/domains/domain/logs/access/ >> >> accesslog file name >> >> ... >> server_access_log.2013-11-14.txt >> server_access_log.2013-11-15.txt >> server_access_log.2013-11-16.txt >> server_access_log.2013-11-17.txt this is main log of todays Nov, 18 >> 2013 >> >> Tomorrow (Nov, 19 2013) main log will be server_access_log.2013-11-18.txt >> >> Glassfish has no main log (server_access_log) which will rotate other >> logs. >> >> >> There is no option write log to syslog in the configuration of Glassfish. >> Only settings I can set is >> >> Access Logging >> Access Logging: >> Enabled >> Rotation: >> Enabled >> Enable access log rotation >> Rotation Policy: >> time >> Rotate according to time >> Rotation Interval: >> Minutes >> Time interval between two successive rotations >> Rotation Suffix: >> Suffix to be added to the access log file name after rotation >> Max File Count: >> The maximum number of rotated access log files that are to be kept. >> Negative value indicates no limit. >> Buffer Size: >> Bytes >> A value of 0 disables buffering >> Write Interval: >> Seconds >> Interval between writing (updating) the access log. A value of 0 means the >> buffer is always written. >> Format: >> Global format for the access log file >> >> Rotation Policy is only time. >> >> My choice is logger to send glassfish log to remote server. But it has >> disadvantage on timestamp of log. when I'm sending to remote server via >> logger then logs timestamp is not datetime of generated log. >> >> >> >> On Sat, Nov 16, 2013 at 3:36 AM, David Lang <[email protected]> wrote: >> >> On Fri, 15 Nov 2013, Tseveendorj Ochirlantuu wrote: >>> >>> Hello, >>> >>>> >>>> There is someone has transfers glassfish HTTP access log to Syslog or >>>> remote rsyslog server ? >>>> >>>> I have difficulty on it >>>> >>>> 1. There is no main log file of glassfish which will rotate other logs >>>> 2. There is no configuration HTTP access log to syslog in glassfish >>>> >>>> In this case how do I ship logs to rsyslog or remote rsyslog server ? >>>> >>>> Any help will be appreciated. >>>> >>>> >>> I've never heard of glassfish before, what logging options does it have? >>> >>> David Lang >>> _______________________________________________ >>> rsyslog mailing list >>> http://lists.adiscon.net/mailman/listinfo/rsyslog >>> http://www.rsyslog.com/professional-services/ >>> What's up with rsyslog? Follow https://twitter.com/rgerhards >>> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad >>> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you >>> DON'T LIKE THAT. >>> >>> _______________________________________________ >> rsyslog mailing list >> http://lists.adiscon.net/mailman/listinfo/rsyslog >> http://www.rsyslog.com/professional-services/ >> What's up with rsyslog? Follow https://twitter.com/rgerhards >> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad >> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you >> DON'T LIKE THAT. >> >> _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

