Skip to main content

Increasing File Hash Max for Extension

Overview

This article describes how to increase the file hash max limit when a file hash is not calculated because a file exceeds the configured size.

Netwrix Change Tracker agents enforce a maximum file size for file hash calculation. If a monitored file exceeds this limit, the agent logs a message similar to the following and does not calculate a hash for the file:

Hash attribute not calculated, file length is bigger than the current filehashmaxforextension limit: C:\folder\subfolder\myfile.exe (171758423 bytes)

Increasing this limit lets the agent hash larger files, but raises the resources and time the agent needs to hash each file.

Instructions

  1. Stop the Netwrix ChangeTracker Gen7 Agent NetCore service.

  2. Open C:\Program Files\NNT Change Tracker Suite\Gen7Agent (NetCore)\Gen7Agent.App.NetCore.dll.config in a text editor.

  3. Locate the filehashmaxforextension_default key.

  4. Set the value to the size, in bytes, that you want to allow. For example, to allow 500 MB:

    <add key="filehashmaxforextension_default" value="524288000" />
  5. Save and close the file.

  6. Start the Netwrix ChangeTracker Gen7 Agent NetCore service.

NOTE: To apply the same limit across multiple agents on the same version and in a default configuration state, copy the edited file to each agent, then stop and start the Netwrix ChangeTracker Gen7 Agent NetCore service on each one for the change to take effect.

After the service restarts, trigger a change on the file that previously exceeded the limit, or wait for the next scheduled tracking cycle. Confirm the fix worked by checking that the agent's rolling log no longer logs the filehashmaxforextension message for that file, and that the agent now populates a hash value for the file instead of flagging it as unhashed.