News and blog
NXLog main page
  • Products
    NXLog Platform
    Log collection
    Log management and analytics
    Log storage
    NXLog Community Edition
    Integrations
    Professional Services
  • Solutions
    Use cases
    Specific OS support
    SCADA/ICS
    Windows event log
    DNS logging
    MacOS logging
    Solutions by industry
    Financial Services
    Government & Education
    Entertainment & Gambling
    Telecommunications
    Medical & Healthcare
    Military & Defense
    Law Firms & Legal Counsel
    Industrial & Manufacturing
  • Pricing
    Licensing
    Plans
  • Partners
    Find a Reseller
    Partner Program
    Partner Portal
  • Resources
    Documentation
    Blog
    White papers
    Videos
    Webinars
    Case Studies
    Community Program
    Community Forum
  • About
    Company
    Careers
  • Support
    Support portals
    Contact us

NXLog Platform
Log collection
Log management and analytics
Log storage
NXLog Community Edition
Integrations
Professional Services

Use Cases
Specific OS support
SCADA/ICS
Windows event log
DNS logging
MacOS logging
Solutions by industry
Financial Services
Government & Education
Entertainment & Gambling
Telecommunications
Medical & Healthcare
Military & Defense
Law Firms & Legal Counsel
Industrial & Manufacturing

Licensing
Plans

Find a Reseller
Partner Program
Partner Portal

Documentation
Blog
White papers
Videos
Webinars
Case Studies
Community Program
Community Forum

Company
Careers

Support portals
Contact us
Let's Talk
  • Start free
  • Interactive demo
Let's Talk
  • Start free
  • Interactive demo
NXLog search
  • Loading...
Let's Talk
  • Start free
  • Interactive demo
November 27, 2025 strategy

End-to-end Windows file monitoring with FIM and Windows Security Auditing

By Arielle Bonnici

Share
ALL ANNOUNCEMENT COMPARISON COMPLIANCE DEPLOYMENT SECURITY SIEM STRATEGY RSS

In the past, we’ve written about monitoring file access in Windows. However, monitoring file access events alone doesn’t capture the full lifecycle of changes that matter for security and compliance.

To gain true end-to-end visibility, you need to track not only when a file is accessed, but also when it’s modified, renamed, or deleted. In this guide, we’ll show how combining File Integrity Monitoring (FIM) with Windows Security Auditing delivers a complete file monitoring solution and how NXLog Agent ties these log sources together.

How FIM and Windows Security Auditing complement each other

FIM and Windows Security Auditing each provide valuable, but fundamentally different, visibility into file activity.

File Integrity Monitoring (FIM)

Focuses on state changes. It tells you when a file was created, deleted, renamed, or modified, and it provides post-change attributes such as size and hash values. This makes FIM ideal for verifying file integrity and establishing a reliable forensic record of file changes.

Windows Security Auditing

Captures access attempts and user interactions with the file system. Audit events describe who accessed a file, the operation they attempted, and whether the action succeeded. This level of context is essential for understanding who made the change, identifying abnormal access patterns, and meeting compliance requirements.

When used together, FIM and Windows Security Auditing complement each other to produce a complete picture. FIM tells you what changed, and Windows auditing tells you who did it. By correlating data from both sources, you gain end-to-end visibility: from the moment a user accesses a file to the resulting state.

Event coverage comparison: FIM vs. Windows Security Auditing

To better understand how FIM and Windows Security Auditing work together, it’s helpful to look at a side-by-side comparison of which file operations each method captures. The table below summarizes coverage for common file and directory events.

Operation File Integrity Monitoring Windows Security Auditing

File Created

✅ EventType=NEW, Object=FILE

✅ Event ID 4663 (AccessMask=CreateFile/WriteData)

File Deleted

✅ EventType=DELETE

✅ Event ID 4660

File Renamed

✅ EventType=RENAME

⚠️ Indirect (Event IDs 4660 + 4663)

File Content Modified

✅ EventType=CHANGE, includes hash + result file size

✅ Event ID 4663 (AccessMask=WriteData/AppendData)

Directory Created

✅ EventType=NEW, Object=DIRECTORY

⚠️ Indirect (Event ID 4663 on directory object)

Permissions Changed

❌

✅ Event ID 4670

File Read

❌

✅ Event ID 4663 (AccessMask=ReadData)

Key takeaways:

  • FIM focuses on file state changes and includes hashes and digests, making it ideal for forensic integrity monitoring.

  • Windows Security Auditing focuses on user access attempts and operational details for behavioral monitoring and compliance.

  • FIM does not capture read operations or permission changes, while Windows Security Auditing doesn’t provide file hashes or confirm content changes.

  • Correlating both sources gives you full visibility: who accessed a file, what actions they attempted, and what changed.

Collecting FIM and Windows Security Auditing logs

Now that we’ve covered how FIM and Windows Security Auditing complement each other, the next step is to collect and centralize these events. NXLog Agent makes it straightforward to gather both types of telemetry data and forward them to your SIEM or log analytics platform. Here is how:

  • Use the Event Log for Windows input module to collect Windows Security Auditing events. Refer to the Audit File System section in Microsoft’s documentation for more information on the relevant event IDs.

  • Use the File Integrity Monitoring input module to monitor and log changes to directories and files.

  • Forward the events to your SIEM or log repository using any of the NXLog Agent’s output modules.

Here is the complete configuration. For simplicity, it writes the events in JSON format to a file on disk.

<Extension json>
    Module          xm_json
    PrettyPrint     TRUE (1)
</Extension>

<Input windows_security_auditing>
    Module          im_msvistalog
    ResolveGUID     TRUE
    ResolveSID      TRUE
    <QueryXML>
      <QueryList>
        <Query Id="1">
          <Select Path="Security">*[System[(EventID=4656 or EventID=4658 or EventID=4660 or EventID=4663 or EventID=4664 or EventID=4670 or EventID=4985 or EventID=5051)]]</Select>
        </Query>
      </QueryList>
    </QueryXML>
    <Exec>
        if ($ObjectName !~ /^C:\\Program Files/ ) { (2)
            drop();
        }
    </Exec>
</Input>

<Input fim>
    Module          im_fim
    File            'C:\Program Files\*'
    Recursive       TRUE
    ScanInterval    120
</Input>

<Output file>
    Module          om_file
    File            'C:\Logs\file_monitoring.log'
    Exec            to_json();
</Output>

<Route file_monitoring_events_to_file>
    Path            windows_security_auditing, fim => file
</Route>
1 Pretty-prints the output for readability.
2 Discards events generated for objects outside the C:\Program Files directory.

Conclusion

Combining File Integrity Monitoring (FIM) with Windows Security Auditing gives you complete visibility of file system changes, capturing both what changed and who performed the action. FIM ensures forensic integrity by tracking state changes, while Windows Security Auditing provides detailed context and permission changes. Together, they form a complete solution for security, compliance, and threat detection.

If you want to learn more about these two file monitoring systems, check out our File Integrity Monitoring and Windows Security Auditing integration guides.

NXLog Platform is an on-premises solution for centralized log management with
versatile processing forming the backbone of security monitoring.

With our industry-leading expertise in log collection and agent management, we comprehensively
address your security log-related tasks, including collection, parsing, processing, enrichment, storage, management, and analytics.

Start free Contact us
  • windows security
  • windows events
Share

Facebook Twitter LinkedIn Reddit Mail
Related Posts

What is File Integrity Monitoring (FIM)? Why do you need it?
5 minutes | January 24, 2020
DNS Log Collection on Windows
8 minutes | May 28, 2020
Windows security monitoring: Collecting and visualizing events in Elasticsearch and Kibana
7 minutes | September 22, 2025

Stay connected:

Sign up

Keep up to date with our monthly digest of articles.

By clicking singing up, I agree to the use of my personal data in accordance with NXLog Privacy Policy.

Featured posts

Announcing NXLog Platform 1.9
October 22, 2025
Gaining valuable host performance metrics with NXLog Platform
September 30, 2025
Announcing NXLog Platform 1.8
September 12, 2025
Security Event Logs: Importance, best practices, and management
July 22, 2025
Announcing NXLog Platform 1.7
June 25, 2025
Enhancing security with Microsoft's Expanded Cloud Logs
June 10, 2025
Announcing NXLog Platform 1.6
April 22, 2025
Announcing NXLog Platform 1.5
February 27, 2025
Announcing NXLog Platform 1.4
December 20, 2024
NXLog redefines log management for the digital age
December 19, 2024
2024 and NXLog - a review
December 19, 2024
Announcing NXLog Platform 1.3
October 25, 2024
NXLog redefines the market with the launch of NXLog Platform: a new centralized log management solution
September 24, 2024
Welcome to the future of log management with NXLog Platform
August 28, 2024
Announcing NXLog Enterprise Edition 5.11
June 20, 2024
Raijin announces release of version 2.1
May 31, 2024
Ingesting log data from Debian UFW to Loki and Grafana
May 21, 2024
Announcing NXLog Enterprise Edition 6.3
May 13, 2024
Raijin announces release of version 2.0
March 14, 2024
NXLog Enterprise Edition on Submarines
March 11, 2024
The evolution of event logging: from clay tablets to Taylor Swift
February 6, 2024
Migrate to NXLog Enterprise Edition 6 for our best ever log collection experience
February 2, 2024
Raijin announces release of version 1.5
January 26, 2024
2023 and NXLog - a review
December 22, 2023
Announcing NXLog Enterprise Edition 5.10
December 21, 2023
Raijin announces release of version 1.4
December 12, 2023
Announcing NXLog Enterprise Edition 6.2
December 4, 2023
Announcing NXLog Manager 5.7
November 3, 2023
Announcing NXLog Enterprise Edition 6.1
October 20, 2023
Raijin announces release of version 1.3
October 6, 2023
Upgrading from NXLog Enterprise Edition 5 to NXLog Enterprise Edition 6
September 11, 2023
Announcing NXLog Enterprise Edition 6.0
September 11, 2023
The cybersecurity challenges of modern aviation systems
September 8, 2023
Raijin announces release of version 1.2
August 11, 2023
The Sarbanes-Oxley (SOX) Act and security observability
August 9, 2023
PCI DSS 4.0 compliance: Logging requirements and best practices
August 2, 2023
Detect threats using NXLog and Sigma
July 27, 2023
HIPAA logging requirements and how to ensure compliance
July 19, 2023
Announcing NXLog Enterprise Edition 5.9
June 20, 2023
Industrial cybersecurity - The facts
June 8, 2023
Raijin announces release of version 1.1
May 30, 2023
CISO starter pack - Security Policy
May 2, 2023
Announcing NXLog Enterprise Edition 5.8
April 24, 2023
CISO starter pack - Log collection fundamentals
April 3, 2023
Raijin announces release of version 1.0
March 9, 2023
Avoid vendor lock-in and declare SIEM independence
February 13, 2023
Announcing NXLog Enterprise Edition 5.7
January 20, 2023
NXLog - 2022 in review
December 22, 2022
Need to replace syslog-ng? Changing to NXLog is easier than you think
November 23, 2022
The EU's response to cyberwarfare
November 22, 2022
Looking beyond Cybersecurity Awareness Month
November 8, 2022
GDPR compliance and log management best practices
September 23, 2022
NXLog in an industrial control security context
August 10, 2022
Raijin vs Elasticsearch
August 9, 2022
NXLog provides native support for Google Chronicle
May 11, 2022
Aggregating macOS logs for SIEM systems
February 17, 2022
How a centralized log collection tool can help your SIEM solutions
April 1, 2020

Categories

  • ANNOUNCEMENT
  • COMPARISON
  • COMPLIANCE
  • DEPLOYMENT
  • SECURITY
  • SIEM
  • STRATEGY
logo

Subscribe to our newsletter to get the latest updates, news, and products releases. 

© Copyright NXLog FZE.

Privacy Policy. General Terms of Use

Follow us

  • Product
  • NXLog Platform 
  • Log collection
  • Log management and analysis
  • Log storage
  • Integration
  • Professional Services
  • Plans
  • Resources
  • Documentation
  • Blog
  • White papers
  • Videos
  • Webinars
  • Case studies
  • Community Program
  • Community forum
  • Support
  • Getting started guide
  • Support portals
  • About NXLog
  • About us
  • Careers
  • Find a reseller
  • Partner program
  • Contact us