Getting Data In

Why am I not able to view my JSON Logs that are being sent to the HEC?

sibrahimi
New Member

JObject l_JsonObj = JObject.Parse(l_strJson);

            ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
            var l_MiddleWare = new HttpEventCollectorResendMiddleware(l_oLogPoint.ResendMiddlewareCount);

            var l_EventCollectorSender = new HttpEventCollectorSender(new Uri(l_oLogPoint.ServerEndpoint), l_oLogPoint.Token,
                null,
                HttpEventCollectorSender.SendMode.Sequential,
                0, 0, 0, l_MiddleWare.Plugin);

            l_EventCollectorSender.Send(Guid.NewGuid().ToString(), "INFO", null, l_JsonObj);
            await l_EventCollectorSender.FlushAsync();
0 Karma

jkat54
SplunkTrust
SplunkTrust

Any errors or exceptions to share?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...