Splunk Dev

How can i call the Java Servlet from Splunk Web App?

Arun_N_007
Communicator

Hi,

I would like to use the existing Java Code to Work on raw data and insert result data into Splunk Index which i need to trigger from the Splunk Web App. How can i do that?

How can i use normal Splunk Web html to call post method of Java Servlet?

Regards,
Arun

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

How much Java code are we talking about ? It may be easier and more elegant to replicate this Java code in Python in a Django view in the Splunk Web Framework.

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

How much Java code are we talking about ? It may be easier and more elegant to replicate this Java code in Python in a Django view in the Splunk Web Framework.

0 Karma

Damien_Dallimor
Ultra Champion
0 Karma

Arun_N_007
Communicator

Damien,

Thank you for your suggestion. Can you suggest any material to learn Django???

Regards,
Arun

0 Karma

Arun_N_007
Communicator

Problem is i have Big implemented Java Code. Which will take more time to replicate.

0 Karma

Arun_N_007
Communicator

Hi Damien,

Yes am trying to call a Servlet or a Java Code(if not Servlet) hosted in the same server.
And i need to get results from the Java Code which will execute an algorithm which will create another index and dump results into that.

Can we call the java program from python script in Splunk?

Can we use Splunk button for other purposes instead of only Querying the Splunkd? (Just like forms in jsp and servlets!!)

Regards,
Arun

0 Karma

Damien_Dallimor
Ultra Champion

Are you trying to call a servlet hosted in another web container , or are you wanting to run the servlet code in Splunk web (which you can't BTW) , please clarify.

0 Karma
Get Updates on the Splunk Community!

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...