Skip to content

Commit 31dd23e

Browse files
committed
test Splunk
1 parent 6eb85d6 commit 31dd23e

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,15 @@ curl -k https://127.0.0.1:3000
137137

138138
## 🛠️ Debug
139139

140-
### 401 Unauthorized
140+
### Dotnet install on Linux
141141

142-
Your first request may return a 401 code due to unsuccessful authentication. It's ok, Start Hacking !
142+
Ubuntu / Debian exemple
143+
144+
```bash
145+
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
146+
dpkg -i packages-microsoft-prod.deb
147+
apt update && apt install -y dotnet-sdk-8.0 dotnet-runtime-8.0
148+
```
143149

144150
### Dotnet Framework
145151

@@ -151,17 +157,6 @@ dotnet --version
151157
dotnet --list-sdks
152158
```
153159

154-
### Dotnet on Linux
155-
156-
Ubuntu / Debian exemple
157-
158-
```bash
159-
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
160-
dpkg -i packages-microsoft-prod.deb
161-
apt update && apt install -y dotnet-sdk-8.0 dotnet-runtime-8.0
162-
```
163-
164-
165160
### Certificates
166161

167162
To trust the certificate
@@ -179,9 +174,6 @@ dependancies have to be dowloaded from [standard sources](https://go.microsoft.c
179174
dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "Microsoft"
180175
```
181176

182-
### Misc
183-
184-
* Be aware that VLA runs Linux and MacOS, but is only tested and supported on Windows.
185177

186178
## 💜 Crédits
187179

nlog.config

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
44

55
<targets>
6+
67
<!-- log au format texte -->
78
<target name="allfile" xsi:type="File"
89
fileName="${shortdate}_logfile.txt"/>
@@ -19,7 +20,21 @@
1920
</target>
2021

2122
<!-- logs en console -->
22-
<target name="logconsole" xsi:type="Console" />
23+
<target name="logconsole" xsi:type="Console" />
24+
25+
<!-- SIEM Splunk -->
26+
<target name="splunk" xsi:type="Http" method="Post"
27+
url="http://localhost:8088/services/collector"
28+
headers="Authorization=Splunk YOUR_TOKEN"
29+
encoding="utf-8"
30+
contentType="application/json">
31+
<layout xsi:type="JsonLayout">
32+
<attribute name="event" layout="${message}" />
33+
<attribute name="level" layout="${level}" />
34+
<attribute name="timestamp" layout="${date}" />
35+
</layout>
36+
</target>
37+
2338

2439
</targets>
2540

0 commit comments

Comments
 (0)