Getting Data In

How do I index a simple http URL request in Splunk Light?

jedashford
New Member

Our web PHP error and access logs are available only at a simple http URL request. How can I get these into Splunk Light?

0 Karma

FritzWittwer_ol
Contributor

a simple solution could be to use a scripted input with either a wget or curl to grab the logs

0 Karma

jedashford
New Member

'scripted input' being a splunk function? Or a cron curl to a file and point splunk to the log?

0 Karma

FritzWittwer_ol
Contributor

Scripted input is a Splunk feature, the universal forwarder executes a script, which you provide, at defined Intervals and indexes the script output, see http://docs.splunk.com/Documentation/Splunk/6.2.5/AdvancedDev/ScriptedInputsIntro

This allows you to get in any data source which you can access via a script, but you have to be aware of the security implications. The script runs under the identity of the Splunk forwarder, usually either root or splunk. It may have too much or not enough privileges to execute the command. Thus a cron jobs which executes the script and writes the output to a file you index with the Splunk forwarder is sometimes a simpler Solution.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...