Skip to main content
Participant
September 9, 2021
Question

Prevent logging ALL http requests in ColdFusion-out.log

  • September 9, 2021
  • 2 replies
  • 620 views

Our applications make a good number of external API calls using <cfhttp>.  I noticed that EVERY http call is logged in ColdFusion-out.log and based on how many calls we make the log files are in the GB range.

 

Our ColdFusion-out.log is filled with millions of records that nobody looks at and I would like to stop

logging this data and creating enourmous log files.  Any help would be greatly appreciated.

    This topic has been closed for replies.

    2 replies

    Participant
    September 9, 2021

    @Dave Watts 

    What's interesting, for ColdFusion-out.log it doesn't seem to honor the "Maximum file size" setting in the CF admin.  We probabaly left ours at the default of 5000 but our ColdFusion-out.log files are in the GB on a daily basis.

    Participant
    September 9, 2021

    @Dave Watts disregard the above statement, the server in question that's "NOT" honoring the max file size has corrupt archive log files which likely can't be overwritten.  Also problaby the reason why our primary log file (coldfusion-out.log) is growing so large.

    Community Expert
    September 9, 2021

    I don't think you can prevent CF writing to the log files. But you can control how frequently CF rolls those logs.

     

    https://community.adobe.com/t5/coldfusion-discussions/coldfusion-2018-cflog/td-p/10482447

     

    Who knows, maybe I'm wrong about the first thing too. It clearly wouldn't be the first time I was wrong.

     

    Dave Watts, Eidolon LLC

    Dave Watts, Eidolon LLC