Getting Data In

What date format does splunk HTTP Event Collector use?


I want to parse local log files and add the date to the body of the post request, but not exactly certain what is the best date form at to use?  Can someone please provide some example options?

Thank You,


$params = @{
    Uri = ''
    Method = 'POST'
    Headers = @{
        Authorization = 'Splunk 2caf8cde'
    Body   = @{
        index = 'job1'
        sourcetype = '_json'
        event      = @{
            name1 = "value1"
            name2 = "value2"
            array1 = @(
    } | ConvertTo-Json
Invoke-RestMethod -SkipCertificateCheck @params
Labels (1)
0 Karma

0 Karma


Hi @mark-jones

You could take a look at this link and there are examples deep links to follow inside.


Hope it helps!

0 Karma
Get Updates on the Splunk Community!

Take the 2021 Splunk Career Survey for $50 in Amazon Cash

Help us learn about how Splunk has impacted your career by taking the 2021 Splunk Career Survey. Last year’s ...

Using Machine Learning for Hunting Security Threats

WATCH NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more for ...

Observability Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestSplunk APM's New Tag Filter ExperienceSplunk APM has updated ...