<?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: Is it possible to provide event sampling in splunk SDK call? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316822#M4365</link>
    <description>&lt;P&gt;Hi ashiqm,&lt;/P&gt;

&lt;P&gt;Unfortunately I don't work with the Java SDK.&lt;BR /&gt;
Apparently there is no existing setter method for sample_ratio, so you would have to write your own.&lt;/P&gt;

&lt;P&gt;May be worth it to re-ask your question specifying you are using Java SDK so Java SDK users get visibility on your question.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 09:54:44 GMT</pubDate>
    <dc:creator>damien_chillet</dc:creator>
    <dc:date>2017-12-04T09:54:44Z</dc:date>
    <item>
      <title>Is it possible to provide event sampling in splunk SDK call?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316819#M4362</link>
      <description>&lt;P&gt;I tried to pass sampleRatio parameter in JobsArgs, but no luck. Is there any way to set sampling ratio in Splunk job?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 09:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316819#M4362</guid>
      <dc:creator>ashiqm</dc:creator>
      <dc:date>2017-12-01T09:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to provide event sampling in splunk SDK call?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316820#M4363</link>
      <description>&lt;P&gt;I managed to have it working with parameter "sample_ratio" and python SDK.&lt;/P&gt;

&lt;P&gt;Code sample below for 1:10 ratio:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;job = instance.jobs.create("search index=_internal component=* earliest=-1d@d", **{ "sample_ratio": 10})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Dec 2017 13:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316820#M4363</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2017-12-01T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to provide event sampling in splunk SDK call?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316821#M4364</link>
      <description>&lt;P&gt;Hi Damien,&lt;/P&gt;

&lt;P&gt;Thanks for your reply...&lt;/P&gt;

&lt;P&gt;In this case, I can't supply the arguments, right?&lt;/P&gt;

&lt;P&gt;my current code is something like this     job = splunk.getJobs().create(query, jobArgs);&lt;/P&gt;

&lt;P&gt;I have some arguments like timeOut. Any idea?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 07:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316821#M4364</guid>
      <dc:creator>ashiqm</dc:creator>
      <dc:date>2017-12-02T07:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to provide event sampling in splunk SDK call?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316822#M4365</link>
      <description>&lt;P&gt;Hi ashiqm,&lt;/P&gt;

&lt;P&gt;Unfortunately I don't work with the Java SDK.&lt;BR /&gt;
Apparently there is no existing setter method for sample_ratio, so you would have to write your own.&lt;/P&gt;

&lt;P&gt;May be worth it to re-ask your question specifying you are using Java SDK so Java SDK users get visibility on your question.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 09:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Is-it-possible-to-provide-event-sampling-in-splunk-SDK-call/m-p/316822#M4365</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2017-12-04T09:54:44Z</dc:date>
    </item>
  </channel>
</rss>

