Log file has been rotated (previous size ..

jacco's Avatar

jacco

02 Dec, 2016 11:03 AM

Hello!

I get this message a lot: Log file has been rotated (previous size .....

So much infact PML is basically useless. The log files are not getting smaller or being rotated. The cause (I think) is in the wildcard support:

{
   "cron":{
      "display":"SimpleSAML",
      "path":"\/export\/logs\/remote\/php\/*simplesaml_log",
      "count": 20,
      "refresh":10,
      "max":10,
      "notify":false,
      "format":{
          "multiline": "",
         "regex": "|^([A-Za-z]{3})\\s*([0-9]{1,2}) ([0-9]{2}):([0-9]{2}):([0-9]{2}) (.*) simplesamlphp\\[(.*)\\]: ([0-9]{1,2}) \\[(.*)\\] (.*)$|U",
         "match": {
            "Date":{
               "M":1,
               "d":2,
               "H":3,
               "i":4,
               "s":5
            },
            "Server":6,
            "PID": 7,
            "Level": 8,
            "Track ID": 9,
            "Log":10
         },
         "types": {
            "Date":"date:Y-m-d H:i:s",
            "Log":"pre",
            "PID": "txt",
            "Level": "txt",
            "Track ID": "txt",
            "Server":"txt"
         }
      }
   }
}

This shows about 4 logfiles. All different sizes. It seems PML is comparing those sizes and drawing faulty conclusions.

  1. 1 Posted by jacco on 17 Feb, 2017 10:06 AM

    jacco's Avatar

    Any news?

  2. Support Staff 2 Posted by potsky on 17 Feb, 2017 03:22 PM

    potsky's Avatar

    Oops Jacco :-(

    I did not see your first ticket... This behaviour is annoying in fact...

    Can you give me the list of files you are trying to display please ?

    ls -al /export/logs/remote/php/*simplesaml_log
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac