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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...