Does Splunk provide any API or utility to capture and store UI related errors like Java Script errors?
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?
@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.
@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.
Also do you want to use Splunk for Dev Ops or Application Monitoring because those are two different use cases?
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.