Building for the Splunk Platform

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!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...