Skip to main content
Dani Szwarc
Inspiring
April 1, 2019
Answered

isapi_redirect.log file too big

  • April 1, 2019
  • 2 replies
  • 3997 views

Hello community, we have found today a very large isapi_redirect.log file under the C:\Coldfusion11\config\wsconfig\ folder.

Does anyone know where can I set either the size or duration of the file?

Thank you.

    This topic has been closed for replies.
    Correct answer Charlie Arehart

    Dani, there's a bit more you should consider:

    First, to your question to Priyank, no, it would not. But if you renamed the log file, while cf and iis were down, then when they were restarted a new log would be created.

    Second, while I agree that you should check the log level, if it's already set to info, you should assess what is in the file in recent minutes, hours, and days. If there are errors  you'll want to address them.

    Third, you had asked also if there is a way to control the size. There is indeed, as another line you could set in that properties file, log_filesize, which will rotate the files when they reach that size. Or you can instead set them to rotate based on time with log_rotationtime.

    For more on these and still other directives  see the Tomcat directives at:

    The Apache Tomcat Connectors - Reference Guide (1.2.x) - Configuring the ISAPI redirector for Microsoft IIS

    (To be clear, CFs web connector is indeed the Tomcat web connector and recent CF versions and updates do use a connector whose version is 1.2.something--depending on the cf version and update levek, so these are indeed the docs for us to follow.)

    2 replies

    Charlie Arehart
    Community Expert
    Charlie ArehartCommunity ExpertCorrect answer
    Community Expert
    April 1, 2019

    Dani, there's a bit more you should consider:

    First, to your question to Priyank, no, it would not. But if you renamed the log file, while cf and iis were down, then when they were restarted a new log would be created.

    Second, while I agree that you should check the log level, if it's already set to info, you should assess what is in the file in recent minutes, hours, and days. If there are errors  you'll want to address them.

    Third, you had asked also if there is a way to control the size. There is indeed, as another line you could set in that properties file, log_filesize, which will rotate the files when they reach that size. Or you can instead set them to rotate based on time with log_rotationtime.

    For more on these and still other directives  see the Tomcat directives at:

    The Apache Tomcat Connectors - Reference Guide (1.2.x) - Configuring the ISAPI redirector for Microsoft IIS

    (To be clear, CFs web connector is indeed the Tomcat web connector and recent CF versions and updates do use a connector whose version is 1.2.something--depending on the cf version and update levek, so these are indeed the docs for us to follow.)

    /Charlie (troubleshooter, carehart. org)
    Dani Szwarc
    Inspiring
    April 1, 2019

    Thank you Charlie and Priyank for your help.

    Charlie, probably it contains many errors from the previous issues we were having in the last two weeks, which were or are being addressed.

    Thank you for all the support you provide to the CF community constantly.

    Charlie Arehart
    Community Expert
    Community Expert
    April 1, 2019

    Thanks for the kind regards, and shout out to Priyank also for so often jumping in as well! :-)

    /Charlie (troubleshooter, carehart. org)
    Priyank Shrivastava.
    Community Manager
    Community Manager
    April 1, 2019

    Hi,

    If the size of the isapi_redirect.log is large, it could be a possibility that the verbose is enabled.

    Go to this location: C:\ColdFusion11\config\wsconfig\{magic_number}

    Take the back up of isapi_redirect.properties and open the properties file and check if the "log_level" is set to debug. If it is set to debug, you have to change it to "info".

    Example.

    extension_uri= /jakarta/isapi_redirect.dll

    log_file= C:\ColdFusion11\config\wsconfig\1\isapi_redirect.log

    log_level= info

    worker_file= C:\ColdFusion11\config\wsconfig\1\workers.properties

    worker_mount_file= C:\ColdFusion11\config\wsconfig\1\uriworkermap.properties

    iis_buffer_enable= true

    auth_complete= 1

    iis_skip_custom_errors_enable= false

    Restart the IIS after making the change.

    Thanks,

    Priyank

    Thanks, Priyank Shrivastava
    Dani Szwarc
    Inspiring
    April 1, 2019

    Thank you very much Priyank!

    Question: by changing this setting will the file resize itself or the fact we restart the IIS will create a file from scratch?

    Thank you again

    Priyank Shrivastava.
    Community Manager
    Community Manager
    April 1, 2019

    Hi,

    You can move the file to a different location and it will create a new file upon restart.

    Thanks,
    Priyank

    Thanks, Priyank Shrivastava