Splunk Search

Can customized SearchBar be readonly?

royimad
Builder

Hello Splunk Experts,

I have a SearchBar that inherit it's value from a Search

$calculation$

I would like that the SearchBar to be readonly , how to do that?

Thanks,

1 Solution

sideview
SplunkTrust
SplunkTrust

I would use an HTML module, create a <textarea>, mark it readonly and dump $search$ into it.

At it's simplest:

<module name="HTML">
  <param name="html"><![CDATA[
    <textarea readonly>$search$</textarea>
  ]]></param>
</module>

View solution in original post

sideview
SplunkTrust
SplunkTrust

I would use an HTML module, create a <textarea>, mark it readonly and dump $search$ into it.

At it's simplest:

<module name="HTML">
  <param name="html"><![CDATA[
    <textarea readonly>$search$</textarea>
  ]]></param>
</module>

alacercogitatus
SplunkTrust
SplunkTrust

If you don't want the search to change, I wouldn't display the bar. According to Module Ref, there is no readonly option.

http://docs.splunk.com/Documentation/Splunk/5.0.2/AdvancedDev/ModuleReference#SearchBar

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...