MetricsHub
MetricsHub Community Connectors 1.0.17
Connectors directory[1] Full listing of connectors[2]
Windows Files Monitoring
Description
This connector returns information of a specific file on Windows.
community[3] system[4] windows[5]
Source[6]
Target
Typical platform: Microsoft Windows[7]
Operating system: Microsoft Windows
Prerequisites
Leverages: PowerShell and WMI
Technology and protocols: Commands
Variables:
contentPattern: Regular expression pattern to match file content for monitoring. (Error|Exception|Failure) (default:)matchPath: Regular expression pattern to match file names for monitoring. (C:\Users\Public\logs\*.log,C:\Program Files\MetricsHub\logs\*.log) (default:)
Examples
CLI
metricshub HOSTNAME -t win -c +WindowsFile --wmi -u USER
metricshub.yaml
resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: win
connectors: [ +WindowsFile ] # Optional, to load only this connector
protocols:
wmi:
username: <USERNAME> # Change with actual credentials
password: <PASSWORD> # Encrypted using metricshub-encrypt
additionalConnectors:
WindowsFile: # Unique ID. Use 'uses' if different from the original connector ID
uses: WindowsFile # Optional - Original ID if not in key
force: true # Optional (default: true); false for auto-detection only
variables:
contentPattern: <VALUE> # Replace with desired value.
matchPath: <VALUE> # Replace with desired value.
Connector Activation Criteria
The Windows Files Monitoring connector must be selected manually, and its status will be reported as OK if all the below criteria are met:
- The WMI query below to the managed host succeeds:
- Namespace:
root\CIMv2 - WQL Query:
SELECT * FROM Win32_OperatingSystem
- Namespace:
Metrics
| Type | Collected Metrics | Specific Attributes |
|---|---|---|
| file |
|
|
| patternMatching |
|
|
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.
