4

Is there any C# client anyone know about that we can use to run queries against SumoLogic? I see they have a Java Client but cannot find a corresponding C# client.

Klaus Nji
  • 18,107
  • 29
  • 105
  • 185

1 Answers1

1

You can use SumoLogicMessageSender class. You can find using this class here.

But, I don't recommend to use GetResult() like it writes in original code :

// this maintains synchronous behavior for single event scenarios.
        this.SumoLogicMessageSender
            .TrySend(bodyBuilder.ToString(), this.SourceName, this.SourceCategory, this.SourceHost)
            .GetAwaiter()
            .GetResult();
blastride
  • 11
  • 1