<?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: Is there a way to set the time of an event created from Submit? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109734#M23059</link>
    <description>&lt;P&gt;Please "accept" the answer. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Sep 2014 18:14:05 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2014-09-04T18:14:05Z</dc:date>
    <item>
      <title>Splunk SDK: Is there a way to set the time of an event created from Submit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109731#M23056</link>
      <description>&lt;P&gt;I'm currently in the process of sending data to the Splunk server through the C# SDK.&lt;/P&gt;

&lt;P&gt;The time for every event sent to the server is based on when the server received the event, and not my own timestamp that is attached to the event in a field. &lt;/P&gt;

&lt;P&gt;Here's an example of what I'm doing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        Receiver splunkReceiver = new Receiver(service);

        var args = new Args();
        args.Add("host", "win-5ja2nu0k88c");
        args.Add("source", "dynaTrace");
        args.Add("sourcetype", "Monitoring");

        splunkReceiver.Submit("main", args, "EventType=4 Keywords=Classic, RecordNumber=number, timestamp = 9/04/13");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to set set the time of the event created from this Submit? I would want it to be equal to my timestamp field. Perhaps through a specific arg?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 18:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109731#M23056</guid>
      <dc:creator>ConnorG</dc:creator>
      <dc:date>2014-09-03T18:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK: Is there a way to set the time of an event created from Submit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109732#M23057</link>
      <description>&lt;P&gt;I tried reformatting your message a bit and it works :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Thu Sep 04 2013 12:47:31 EventType=4 Keywords=Classic RecordNumber=number
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively , you could declare timestamp extraction rules in props.conf for your sourcetype "Monitoring"&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 00:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109732#M23057</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-09-04T00:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK: Is there a way to set the time of an event created from Submit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109733#M23058</link>
      <description>&lt;P&gt;That worked wonderfully. Thanks much for the assistance sir.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 14:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109733#M23058</guid>
      <dc:creator>ConnorG</dc:creator>
      <dc:date>2014-09-04T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK: Is there a way to set the time of an event created from Submit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109734#M23059</link>
      <description>&lt;P&gt;Please "accept" the answer. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 18:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-SDK-Is-there-a-way-to-set-the-time-of-an-event-created/m-p/109734#M23059</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-09-04T18:14:05Z</dc:date>
    </item>
  </channel>
</rss>

