Dashboards & Visualizations

Getting [/inputs/index_filter]: must NOT have additional properties when I'm trying to save the dashboard below.

NanSplk01
Communicator
{
    "title""Index Ownership Lookup",
    "description""Search index ownership and contact details from CSV lookup data.",
    "theme""light",
    "inputs": {
        "index_filter": {
             "type""input.text",
             "title""Search Index Name",
             "token""index_filter",
             "defaultValue"""

             }
    },
    "dataSources": {
        "ds_index_lookup": {
            "type""ds.search",
            "options": {
                "query""| inputlookup index_ownership.csv | eval index_lc=lower(index) | where \"$index_filter$\"=\"\" OR like(index_lc, \"%\" . lower(\"$index_filter$\") . \"%\") | fields index Owner Contact | sort index"
            }
        }
    },
    "visualizations": {
        "index_table": {
            "type""splunk.table",
            "dataSources": {
                "primary""ds_index_lookup"
            },
            "options": {
                "rowNumbers"true,
                "wrap"true,
                "cellPadding""compact"
            }
        }
    },
    "layout": {
        "tabs": {
            "items": [
                {
                    "layoutId""layout_1",
                    "label""New tab"
                }
            ]
        },
        "layoutDefinitions": {
            "layout_1": {
                "type""absolute",
                "structure": [
                    {
                        "item""index_table",
                        "type""block",
                        "position": {
                            "x"0,
                            "y"0,
                            "w"1440,
                            "h"650
                        }
                    }
                ]
            }
        }
    }
}
 
I have tried taking out the extra properties, but it just gives me a different error.  This dashboard will be reading a csv file which does exist.  How can I fix this so that the app will run?
Labels (2)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try like this

    "inputs": {
        "index_filter": {
             "type": "input.text",
             "title": "Search Index Name",
             "options": {
                  "token": "index_filter",
                  "defaultValue": ""
             }
        }
    },
0 Karma

NanSplk01
Communicator

Unfortunately adding that gives me:  

[Error: Input is not present in the global inputs structure or layout structure]: Input "index_filter" is defined but not used in either the Global Inputs Structure or in any Layout Structure

 "inputs": {
        "index_filter": {
             "type""input.text",
             "title""Search Index Name",
             "options": {
                "token""index_filter",
                "defaultValue"""
                }

             }
    },

 

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

OK so the error message tells you what to do!

    "layout": {
        "globalInputs": [
            "index_filter"
        ],
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...