Splunk Dev

Search a string using Splunk C# SDK

harshal_chakran
Builder

I have been trying to search a string using "search" example in Splunk SDK for C#.When I run the app, it shows all the Events in Console. What I need is to search just a single string, for e.g."reject" which is available in my indexed file.
Can anybody help me with this.

Tags (3)
0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

If you look at the C# program : https://github.com/splunk/splunk-sdk-csharp/blob/master/examples/search/Program.cs

You can see that you can pass the "--search" argument to the program to specify your search query

--search="search reject"

View solution in original post

Damien_Dallimor
Ultra Champion

If you look at the C# program : https://github.com/splunk/splunk-sdk-csharp/blob/master/examples/search/Program.cs

You can see that you can pass the "--search" argument to the program to specify your search query

--search="search reject"

harshal_chakran
Builder

Thanks for the help Damien!!!

0 Karma
Get Updates on the Splunk Community!

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

Enterprise Security Content Update (ESCU) | New Releases

In April, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...