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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Enhance Security Operations with Automated Threat Analysis in the Splunk EcosystemAre you leveraging ...

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...