Skip to content

Commit

Permalink
Renamed event's ProviderName to Source
Browse files Browse the repository at this point in the history
  • Loading branch information
akunzai committed Jan 21, 2023
1 parent 86bf2aa commit 4cf5c48
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ git pull
Sample output

````markdown
# Windows Secure Auditor: 0.12.8
# Windows Secure Auditor: 0.12.9

## System Information

Expand Down Expand Up @@ -141,7 +141,7 @@ Poll Interval: 6 (64s)

- Level: Error | Event ID: 2004
- LogName: Application
- ProviderName: Microsoft-Windows-PerfNet
- Source: Microsoft-Windows-PerfNet
- Count: 1

```log
Expand All @@ -150,7 +150,7 @@ Unable to open the Server service performance object. The first four bytes (DWOR

- Level: Error | Event ID: 36874
- LogName: System
- ProviderName: Schannel
- Source: Schannel
- Count: 25

```log
Expand Down
6 changes: 3 additions & 3 deletions README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ git pull
範例輸出

````markdown
# Windows Secure Auditor: 0.12.8
# Windows Secure Auditor: 0.12.9

## 系統資訊

Expand Down Expand Up @@ -141,7 +141,7 @@ git pull

- 等級: 錯誤 | 事件識別碼: 2004
- 記錄檔: Application
- 提供者: Microsoft-Windows-PerfNet
- 來源: Microsoft-Windows-PerfNet
- 計次: 1

```log
Expand All @@ -150,7 +150,7 @@ Unable to open the Server service performance object. The first four bytes (DWOR

- 等級: 錯誤 | 事件識別碼: 36874
- 記錄檔: System
- 提供者: Schannel
- 來源: Schannel
- 計次: 25

```log
Expand Down
2 changes: 1 addition & 1 deletion SecureAuditor.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# RootModule = ''

# Version number of this module.
ModuleVersion = '0.12.8'
ModuleVersion = '0.12.9'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
6 changes: 3 additions & 3 deletions rules/WinEvent/EventLogs.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Level = Level
LogName = LogName
Message = Message
ProviderName = ProviderName
Source = Source
'@
}

Expand Down Expand Up @@ -54,11 +54,11 @@ function Test($config) {
$level = $event.Group[0].LevelDisplayName
$logName = $event.Group[0].LogName
$message = $event.Group[0].Message
$providerName = $event.Group[0].ProviderName
$source = $event.Group[0].ProviderName
$count = $event.Count;
Write-Output "`n- $($i18n.Level): $($level) | $($i18n.EventId): $($eventId)"
Write-Output " - $($i18n.LogName): $($logName)"
Write-Output " - $($i18n.ProviderName): $($providerName)"
Write-Output " - $($i18n.Source): $($source)"
Write-Output " - $($i18n.Count): $($count)"
if ($null -ne $message) {
# remove special characters
Expand Down
2 changes: 1 addition & 1 deletion rules/WinEvent/zh-TW/EventLogs.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ EventLogs = 事件記錄
Level = 等級
LogName = 記錄檔
Message = 訊息
ProviderName = 提供者
Source = 來源
'@

0 comments on commit 4cf5c48

Please sign in to comment.