<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk SDK Search is slow in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495148#M8908</link>
    <description>&lt;P&gt;What is your search? &lt;/P&gt;

&lt;P&gt;How are you connecting with the SDK?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2019 14:42:17 GMT</pubDate>
    <dc:creator>wmyersas</dc:creator>
    <dc:date>2019-11-29T14:42:17Z</dc:date>
    <item>
      <title>Splunk SDK Search is slow</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495147#M8907</link>
      <description>&lt;P&gt;The Splunk query using Splunk SDK using C# returns results much slower than the front end.&lt;/P&gt;
&lt;P&gt;Query&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;index=TEST "&amp;lt;TEST LogTime" earliest="11/1/2019:0:0:0" latest="11/30/2019:23:59:59" | where (in(Field1, "TestValue1","TestValue2","TestValue3")) | fields TestField1 TestField2 TestField3 | rename TestField1 as TestField1a, TestField2 As TestField2b, TestField3 As TestField3a

using (var service = new Service(Scheme.Https, _config.Uri, _config.Port))
                {

                    await service.LogOnAsync(_config.Username, _config.Password);

                    using (var searchResultStream = await service.SearchOneShotAsync(query))
                    {

                        var config = new MapperConfiguration(cfg =&amp;gt; { });
                        var mapper = config.CreateMapper();
                        foreach (var result in searchResultStream)
                        {
                            results.Add(mapper.Map&amp;lt;T&amp;gt;(result));
                        }
                    }
                }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495147#M8907</guid>
      <dc:creator>TheMilkMan</dc:creator>
      <dc:date>2020-06-07T18:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK Search is slow</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495148#M8908</link>
      <description>&lt;P&gt;What is your search? &lt;/P&gt;

&lt;P&gt;How are you connecting with the SDK?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 14:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495148#M8908</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-29T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK Search is slow</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495149#M8909</link>
      <description>&lt;P&gt;index=TEST "&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 14:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495149#M8909</guid>
      <dc:creator>TheMilkMan</dc:creator>
      <dc:date>2019-11-29T14:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK Search is slow</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495150#M8910</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=TEST "&amp;lt;TEST LogTime" earliest="11/1/2019:0:0:0" latest="11/30/2019:23:59:59" | where (in(Field1, "TestValue1","TestValue2","TestValue3")) | fields TestField1 TestField2 TestField3 | rename TestField1 as TestField1a, TestField2 As TestField2b, TestField3 As TestField3a

using (var service = new Service(Scheme.Https, _config.Uri, _config.Port))
                {

                    await service.LogOnAsync(_config.Username, _config.Password);

                    using (var searchResultStream = await service.SearchOneShotAsync(query))
                    {

                        var config = new MapperConfiguration(cfg =&amp;gt; { });
                        var mapper = config.CreateMapper();
                        foreach (var result in searchResultStream)
                        {
                            results.Add(mapper.Map&amp;lt;T&amp;gt;(result));
                        }
                    }
                }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Nov 2019 14:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-Search-is-slow/m-p/495150#M8910</guid>
      <dc:creator>TheMilkMan</dc:creator>
      <dc:date>2019-11-29T14:52:39Z</dc:date>
    </item>
  </channel>
</rss>

