Closed mtman closed 6 years ago
Hi @mtman,
Can you try calling log.CloseAndFlush()
, under the hood this sink uses the period batching sink so events are not immediately flushed. Middleware and frameworks such as ASP.Net do this sometimes as the request pipeline level. You will find similar behaviour in other HTTP sinks.
Hope this helps!
That was indeed the problem. Thanks a lot.
it looks like there is no method CloseAndFlush()
anymore...
i can write message to splunk from curl but not from java or .net core... no errors, ne messages
in curl i have splunkhost https://localhost:8088/services/collector, in .net/java using https://localhost:8088 (tried with services/collector too)
@vsix27 Log.CloseAndFlush()
just calls the Dispose()
method on the default logger instance. Have you tried calling Dispose()
?
Steps
Program.cs:
Result
No console output.
No records were added.
Fiddler doesn't show any request to
192.168.0.11