Getting Data In

Does Splunk have API or utilities to store UI and Java Script errors?

sahasra11
New Member

Does Splunk provide any API or utility to capture and store UI related errors like Java Script errors?

Simple Usecase:
As Web UI pages has to execute lots of Java Script files to render or show required content based on conditions, in this process some of Java Scripts might not load completely OR throw errors because of "incorrect Objects initialization, Null Pointers, etc.,", so want to capture such errors directly in Splunk logs to analyze and fix in future.

Is there any way to capture such errors with the help of Splunk utilities or APIs?

0 Karma

niketn
Legend

@sahasra11 could you please add technology framework on top of which your UI is built? I think you are looking for a wrong use case for Splunk. There are so many standard Logging Tools in market specific to various technologies that can be used to log UI errors which can then be sent to Splunk and monitored using corresponding Standard Apps or Custom Apps depending on Custom Code. Even HTTP Event Collectors can be used to send the errors directly to Splunk.

Then as per the hosted Application type/server type, monitoring can be setup using standard Splunk apps corresponding to the same. Check out Splunkbase, Splunk Blogs, Splunk Docs, Splunk .conf materials for details/use cases as per your monitoring needs.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

sahasra11
New Member

@niketnilay - Thanks for your reply. Our UI is simple and has only Java Script and CSSs. Reason for looking APIs OR utilities from Splunk itself is that we want to avoid any intermediate tools OR tech stack to capture UI errors and index by Splunk to search, analyze, and fix issues, rather want to directly send UI errors to Splunk.

0 Karma

niketn
Legend

Please check out HTTP Event Collector Use Case for JavaScript: http://dev.splunk.com/view/event-collector/SP-CAAAE7Q

Also do you want to use Splunk for Dev Ops or Application Monitoring because those are two different use cases?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

chrisyounger
SplunkTrust
SplunkTrust

Not that I am aware of, but you should take a close look at Splunkbase.

This is kinda what you need to do but it doesn't track errors: https://splunkbase.splunk.com/app/1539/#/details and boomerang is an abandoned project now.

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: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...