Dashboards & Visualizations

Forms in Splunk

urvishah
Engager

Hi, From what I read so far, Splunk forms can be used to fetch/filter data based on User's requirement. The data in the case is already present in Splunk. However, I wish to insert data into specific Index in Splunk. Can this also be done using Splunk Forms? 

Labels (1)
0 Karma
1 Solution

livehybrid
SplunkTrust
SplunkTrust

Hi @urvishah 

Are you wanting to allow users to write data to a Splunk index without being logged in to Splunk itself? If so you would need an external site/system which then sends the collected form data to a HEC receiver to be indexed in Splunk.

If you want something within Splunk itself then you can use a Dashboard with multiple text inputs/dropdowns etc. You can then use the tokens from these inputs to build a search with a "collect" statement that would populate your index.

|makeresults 
| eval name=$name|s$
| eval formField1=$formField1|s$
| collect index=yourIndex

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

Hi

basically yes as @livehybrid already said. There are also other ways to store end user's answers into splunk, but what is best is depending on your use case. Those are e.g. kvstore, csv file, db connect etc.

If you need more specific answer, then you should told your use case and what you looking for.

r. Ismo

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @urvishah 

Are you wanting to allow users to write data to a Splunk index without being logged in to Splunk itself? If so you would need an external site/system which then sends the collected form data to a HEC receiver to be indexed in Splunk.

If you want something within Splunk itself then you can use a Dashboard with multiple text inputs/dropdowns etc. You can then use the tokens from these inputs to build a search with a "collect" statement that would populate your index.

|makeresults 
| eval name=$name|s$
| eval formField1=$formField1|s$
| collect index=yourIndex

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

Get Updates on the Splunk Community!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...