Dashboards & Visualizations

What parameters do the "intention" have in dashboard?

sunrise
Contributor

Hi Splunkers,

I have a question about the following XML.
<module name="ConvertToIntention">
<param name="settingToConvert">index_setting</param>
<param name="intention">
<param name="name">stringreplace</param>
<param name="arg">
<param name="index">
<param name="fillOnEmpty">True</param>
<param name="prefix">index=</param>
<param name="value">$target$</param>
</param>
</param>
</param>

Then I've checked that the ConvertToIntention module has a intention parameter in module references.
But I couldn't get name, arg, index parameters.
Where do those parameters come from ?
Are there any resources ?

Thank you for your help.

Tags (3)
0 Karma
1 Solution

ranjyotiprakash
Communicator

Please refer to Lister Modules Documentation and see the examples listed:
link text

Hi sunrise,
Have a look at below code example that I have used one of my views - which is having a select box, which have the unit_name values as select options.

enter code here
<module name="SearchSelectLister" layoutPanel="mainSearchControls" autoRun="True">
    <param name="searchWhenChanged">True</param>
    <param name="settingToCreate">unit_name_setting</param>
    <param name="label">Unit Name :</param>
    <param name="savedSearch">search_unit_name</param>
    <param name="searchFieldsToDisplay">
            <list>
                    <param name="label">unit_name</param>
                    <param name="value">unit_name</param>
            </list>
    </param>
    <module name="ConvertToIntention">
            <param name="settingToConvert">unit_name_setting</param>
            <param name="intention">
                    <param name="name">stringreplace</param>
                    <param name="arg">
                            <param name="unit_name">
                                    <param name="value">$target$</param>
                            </param>
                    </param>
            </param>
            <module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="True">
                  <param name="search">sourcetype="audit" Transaction_Type ="LOGIN"|where unit_name = "$unit_name$"|timechart count BY admin_Name </param>
                  ...
            </module>
            <module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="True">
                  ...
            </module>
      </module>
</module>

If you can elaborate your situation, how are you trying use the module. or you can paste your code segment.
Thanks

View solution in original post

0 Karma

ranjyotiprakash
Communicator

Please refer to Lister Modules Documentation and see the examples listed:
link text

Hi sunrise,
Have a look at below code example that I have used one of my views - which is having a select box, which have the unit_name values as select options.

enter code here
<module name="SearchSelectLister" layoutPanel="mainSearchControls" autoRun="True">
    <param name="searchWhenChanged">True</param>
    <param name="settingToCreate">unit_name_setting</param>
    <param name="label">Unit Name :</param>
    <param name="savedSearch">search_unit_name</param>
    <param name="searchFieldsToDisplay">
            <list>
                    <param name="label">unit_name</param>
                    <param name="value">unit_name</param>
            </list>
    </param>
    <module name="ConvertToIntention">
            <param name="settingToConvert">unit_name_setting</param>
            <param name="intention">
                    <param name="name">stringreplace</param>
                    <param name="arg">
                            <param name="unit_name">
                                    <param name="value">$target$</param>
                            </param>
                    </param>
            </param>
            <module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="True">
                  <param name="search">sourcetype="audit" Transaction_Type ="LOGIN"|where unit_name = "$unit_name$"|timechart count BY admin_Name </param>
                  ...
            </module>
            <module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="True">
                  ...
            </module>
      </module>
</module>

If you can elaborate your situation, how are you trying use the module. or you can paste your code segment.
Thanks

0 Karma

ranjyotiprakash
Communicator

Check the updated answer.

0 Karma

sunrise
Contributor

Does nobody know about else resouces ?

0 Karma

sunrise
Contributor

Thank you, ranjyotiprakash. But I already know those examples..

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...