81 lines
1.2 KiB
Markdown
81 lines
1.2 KiB
Markdown
# Log4Graylog
|
|
|
|

|
|

|
|

|
|
|
|
|
|
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> |