Skip to content

Commit

Permalink
refactor: Update snort.ps1 to use correct log location
Browse files Browse the repository at this point in the history
The `snort.ps1` script is modified to update the log location for Snort alerts. The previous location `/var/log/snort/snort.alert.fast` is replaced with `C:\Snort\log\alert.ids`. This change ensures that the alerts are logged to the correct file path on Windows systems.

Refactor `snort.ps1` to update log location for Snort alerts
  • Loading branch information
bengo237 committed Sep 9, 2024
1 parent 91dff1e commit 1dfaa7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/windows/snort.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function Install-Snort {
$snortConfig = @"
<!-- snort -->
<localfile>
<log_format>snort-full</log_format>
<location>/var/log/snort/snort.alert.fast</location>
<log_format>snort-full</log_format>
<location>C:\Snort\log\alert.ids</location>
</localfile>
"@

Expand Down

0 comments on commit 1dfaa7b

Please sign in to comment.