LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Change Time Stamp format in log files

    Employee
    Posted 04-25-2014 06:50

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: spalluru

    Hi ,
    May I know how to change time stamp format in log files to YYYY-MM-DD 24HH:MI:SI from the default one

    ex: I see like below in my log files

    security.log
    ++++++++++


    <logEvent timestamp="1397750395995" level="WARN">
    <message xsi:type="rawMessage"><![CDATA[Added user 'XXXXX'.]]></message>
    <detail xsi:type="javaDetail" class="com.lavastorm.brain.util.AddUser" method="main" file="AddUser.java" line="35"/>
    </logEvent>

    -Sreekanth


  • 2.  RE: Change Time Stamp format in log files

    Employee
    Posted 04-25-2014 07:28

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: DanRosenblatt

    If you insert the following line

    ls.brain.server.logType=jerror

    into the Server Properties section of your %LAE_HOME%/conf/brain/ls_brain.prop file, the logging will be changed from

    <logEvent timestamp="1390239055000" level="WARN">
    <message xsi:type="rawMessage"><![CDATA[Accepted connection from /123.45.67.89:0123]]></message>
    <detail xsi:type="javaDetail" class="com.lavastorm.brain.server.Server" method="handleAccept" file="Server.java" line="561"/>
    </logEvent>

    To look like:

    2014-01-20 12:30:55; Level: 2; Type: 0; Desc: Accepted connection from /123.45.67.89:0123; File: Server.java; Line: 561; Class: com.lavastorm.brain.server.Server; Method: handleAccept

    With a human readable date and time.