Counting Number of Files Uploaded in SFTP Server
TLDR - Quick Summary
What: Count uploaded files in Azure Log Analytics
Yesterday:
AzureDiagnostics | where Message contains "upload" | where TimeGenerated > ago(1d) | summarize count()Last 7 days: Change
ago(1d)toago(7d)
Overview
Tracking the number of files uploaded to an SFTP server can be useful for monitoring activity, detecting anomalies, or generating reports. This guide explains how to count the number of uploaded files over specific time periods using Azure Log Analytics.
Azure Log Analytics Workspace
Steps to Count Uploaded Files
- Access Log Analytics Workspace:
- Open
Azure Monitor>Logs. - Select the relevant Log Analytics Workspace.
- Run a Query to Count Files Uploaded Yesterday:
AzureDiagnostics
| where Message contains "upload"
| where TimeGenerated > ago(1d)
| summarize count()
- Run a Query to Count Files Uploaded in the Last 7 Days:
AzureDiagnostics
| where Message contains "upload"
| where TimeGenerated > ago(7d)
| summarize count()