Skip to main content
myrdin
New Member
July 29, 2015
Solved

Fortigates local disk retention and thresholds

  • July 29, 2015
  • 4 replies
  • 9780 views

Hi,

 

silly question probably: at some point the local disk on the fortigates will get full (both logs and reports). Where can i find the policy for retention? Does the fortigate have a mechanism that if a threshold is breached it will start deleting old logs and reports?

 

thanks

 

    Best answer by Sylvia

    Hm, I am not aware of a dedicated retention setting/policy.

     

    There's just:

    config log disk setting   set diskfull {nolog | overwrite}

      set full-first-warning threshold   set full-second-warning threshold   set full-final-warning threshold

    end

    (refer to http://docs.fortinet.com/d/fortigate-fortios-5.2-cli-reference)

     

    Sylvia

    4 replies

    Sylvia
    SylviaAnswer
    Explorer
    July 29, 2015

    Hm, I am not aware of a dedicated retention setting/policy.

     

    There's just:

    config log disk setting   set diskfull {nolog | overwrite}

      set full-first-warning threshold   set full-second-warning threshold   set full-final-warning threshold

    end

    (refer to http://docs.fortinet.com/d/fortigate-fortios-5.2-cli-reference)

     

    Sylvia

    FatalHalt
    New Member
    July 29, 2015

    Hey Myrdin,

     

    You can use the settings below to set your thresholds. If you're using a server to roll the logs to, there are some more options that can be used as well. 

     

    config log disk setting
        diskfull (nolog/overwrite) - have the FTG stop logging, or overwrite oldest logs when the disk is full.
        maximum-log-age (#) - Only keeps logs up until they are # of days old.
        log-quota (#) - Maximum size (in MB) of the disk the FTG can use for logging.
    end

    myrdin
    myrdinAuthor
    New Member
    July 29, 2015

    legends both of you. 

     

    I cannot see the statement to overwrite with i set, so i suppose that is the default settings and it wont appear.

     

    thanks

    Sylvia
    Explorer
    July 30, 2015

    try show full after config log disk setting.

    Then you see ALL settings - including the default ones.

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT