Getting Data In

using the Resource Kit with the free license

oogabooga
Explorer

I'm trying to connect to Splunk via the Resource Kit and it gives me an unauthorized error.

This worked great with the Enterprise License trial, but now I can't connect even with the admin ID and password.

Invoke-HTTPPost : Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (401) Unauthorized."

What gives? I've heard from several different sources that if you have less than 500mb per day, this is a great way to track your logs. I'd like to send my logs to Splunk with the resource kit. Specifically Write-SplunkMessage cmdlet.

Is there a special way for me to connect with the free license using the Resource Kit?

Thanks in advance for your help.

Tags (1)
0 Karma

oogabooga
Explorer

gpduck saved the day. Here are the details:

http://www.oogabooga.info/2012/10/splunk-powershell-and-free-license.html

Thanks again everybody who helped out.

ChrisG
Splunk Employee
Splunk Employee

Copying in this info from Twitter @bsonposh (might be an exchange with you, actually, but putting it in here for others to see):

The problem is that most of the cmdlets assume authentication. Try -noauth on invoke-splunkrestapi

  • -noauth switch seems to work, but Write-SplunkMessge had auth wrapped all around it and other functions that it calls. 😞

I know… We need to fix that in the next release 😞

0 Karma

oogabooga
Explorer

ha, that was me. I'm posting the workaround in the next thread below.

0 Karma

ChrisG
Splunk Employee
Splunk Employee

I don't know much about the PowerShell Resource Kit, but Splunk free does not have authentication or access control--no login. See More About Splunk Free in the Admin Manual.

0 Karma

oogabooga
Explorer

Yeah, I don't care about auth. I just want to send it logs to keep track of what my scripts are doing. I'm working around the issue now by sending syslog, but I'd like to use the Resource Kit if possible.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...