Getting Data In

can I pre-populate fields in "new input" pages in Splunk Manager?

Justin_Grant
Contributor

I'd like to create a shortcut for admins to create specific new data inputs. For example, if I want to have a shortcut which autmatically sets the Host regex for file inputs.

Is this possible? Obviously, the easiest way would be to use a URL (e.g. pointing to /manager/search/data/inputs/monitor/_new?action=edit) with query string parameters added which populate manager input page controls.

Or, a POST using client script which achieved the same thing would be fine too-- as long as the user can fill in the remaining fields manually.

Is this possible?

0 Karma

richprescott
Path Finder

Yes. You can edit the manager XMl files and include dropdowns with pre-populated information. Something similar to this:

             ....
             <element name="host" type="select">
              <options>
                <opt value="\w+" label="Words" />
                <opt value="\d+" label="Numbers" />
              </options>
             </element>
             ....
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...