All Apps and Add-ons

Does the Website input add-on support JavaScript?

ksextonmacb
Path Finder

I have an input that's only useful after the JavaScript on the page has run. Is there a way to have this application run the JavaScript before pulling data?

0 Karma
1 Solution

LukeMurphey
Champion

At the current time it isn't supported. I have actually looked into it (http://lukemurphey.net/issues/1132) but it is difficult to support because it requires third-party libraries that Splunk doesn't include. Including third-arty libraries into Splunk is not trivial and is discouraged.

View solution in original post

LukeMurphey
Champion

At the current time it isn't supported. I have actually looked into it (http://lukemurphey.net/issues/1132) but it is difficult to support because it requires third-party libraries that Splunk doesn't include. Including third-arty libraries into Splunk is not trivial and is discouraged.

ksextonmacb
Path Finder

Thanks. I was pretty sure this was the case but I needed to hear it to make sure I couldn't make use of this before moving on to something more complicated. Incidentally your plugin seems pretty easy to use to scrape just HTML, so thanks for that.

Next up is using python and selenium to consume a scripted input.

0 Karma

LukeMurphey
Champion

I failed to mention that I implemented this in Website Input 3.0. I include Selenium and the Gecko driver within the app. You just need to make sure you have Firefox installed. It also now includes a new UI that makes creating the input much easier.

0 Karma

LukeMurphey
Champion

The new wizard input UI looks like this: alt text

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

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 ...