Files
Claudio Boggian 728820a65c .
2025-02-27 11:06:16 +01:00

81 lines
1.2 KiB
Markdown

# Log4Graylog
![DotNet](https://img.shields.io/badge/Code-.NET%209.0-purple?style=flat-square&logo=dotnet)
![Graylog](https://img.shields.io/badge/Device-Graylog-red?style=flat-square&logo=graylog)
![Release](https://img.shields.io/badge/Release-v1.0.2-green?style=flat-square)
Service for monitoring and sending log files to Graylog.
## AppSettings
<details>
<summary>GraylogSettings</summary>
<br>
>HostnameOrAddress
logs.pal.it [Default]
>Port
12204 [Default]
>MinimumLogEventLevel
0. Verbose
1. Debug
2. Information [Default]
3. Warning
4. Error
5. Fatal
>Facility
ConsoleApp [Default]
---
</details>
<details>
<summary>GeneralSettings</summary>
<br>
>LogType
0. None
1. Cyperplan
>DirPath
Path to the folder where the file to be monitored is located
>FileNamePattern
"\*.\*" Regex for file search
---
</details>
### Already run example and backup
<details>
<summary>PALCYBERPAN01</summary>
<br>
```
{
"GraylogSettings" : {
"HostnameOrAddress" : "logs.pal.local",
"Port" : 12204,
"MinimumLogEventLevel": 2,
"Facility" : "CyberPlan Logs"
},
"GeneralSettings" : {
"LogType": 1,
"DirPath" : "E:\\CyberPlanWeb_Data\\cybinstance\\PLANNING\\logs",
"FileNamePattern": "debug.*.log*"
}
}
```
</details>