- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Nice to Meet you.
I am junior Splunk Developer.
Please Help me for my Hard Work..
The contents are as follow below
I want to Make Function that
- when users enter the dashboard panel,
- then insert something they want through textfield.
- and click the save button
- modify /etc/apps/[myapp]/lookup/myfile.csv file directly.
Look-up file to modify and add, delete.
I look forward your perfect answer.
Sincerely yours
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had a "weird" (well I thought so until I saw this) use-case, that involved modifying lookups from Splunkweb...
Basically you will need to follow these steps (well this is how I got a solution):
- Write a python script to interact with the file
- Create/Edit a commands.conf file in your Splunk App
- Write a search query to take user input from text box
To give some more detail on this...
You will need to write a python script that will take standard system arguments (i.e. "sys.argv[n]") and apply them to the file of choice. If you a not familiar with writing Python scripts, it is quite an easy language to grasp the basics that you will need for this task. You should look at the following sources for support, if you need them:
http://stackoverflow.com/
http://www.python.org/doc/
http://docs.python.org/tutorial
You will need to make sure that you are writing your script for Python version 2.7, as this is the version that Splunk is using.
Once you have the script written and tested. You will need to create a command.conf file in your app's directory (e.g. "$SPLUNK_HOME/etc/apps/<yourApp>/local/commands.conf
"). This will be the method for informing Splunk that you have written a new script for it to use. The following is a simple example of how this may be setup, but you may wish to look at the spec file for more potential:
[yourCommand]
filename = /path/to/you/command.py
The following resources, can help here:
http://docs.splunk.com/Documentation/Splunk/5.0/admin/Commandsconf
http://docs.splunk.com/Documentation/Splunk/4.3.3/Developer/SearchScripts
You will then need to restart Splunk to apply these changes.
Now you will need to create a form that will handle the user's input. This view will include a the use of your script/command, "yourCommand
", where you would use the user input (e.g. in the form xml, this would be something like "$foo$
"). The following links would be able to help here:
http://docs.splunk.com/Documentation/Splunk/4.3.1/Developer/Step1CreateAForm
http://docs.splunk.com/Documentation/Splunk/4.3.1/Developer/AdvancedFormSearch
You should then be good to go.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I just thought I'd post a note here. I'm working on a new interface in Sideview Utils called Lookup Updater, and the next version of it should have create/update/delete for rows in existing lookups. As well as a way to just reupload a full fresh copy of the entire lookup from a local CSV. I'll try and repost when it's up but I'm shooting for next week.
Cheers.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You, sir, are a god.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

It actually released, in prototype form at least, as a part of Sideview Utils 2.2.6... Try it out and let me know if you hit any problems. I fully expect to rev it again this week so please find things wrong with it. The view name is update_lookup and there's a link to it from the "tools" page.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
any luck with Lookup Updater? super keen 🙂
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks to your comment! 😄
I wonder Some Detail points that
- when I using updated sideview util?
- Is it have a cost?
- We have no time to develop.. So could you give me some advice to develop?
Thanks to your kindness again, and I look forward to your answer ^^ Bye~
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had a "weird" (well I thought so until I saw this) use-case, that involved modifying lookups from Splunkweb...
Basically you will need to follow these steps (well this is how I got a solution):
- Write a python script to interact with the file
- Create/Edit a commands.conf file in your Splunk App
- Write a search query to take user input from text box
To give some more detail on this...
You will need to write a python script that will take standard system arguments (i.e. "sys.argv[n]") and apply them to the file of choice. If you a not familiar with writing Python scripts, it is quite an easy language to grasp the basics that you will need for this task. You should look at the following sources for support, if you need them:
http://stackoverflow.com/
http://www.python.org/doc/
http://docs.python.org/tutorial
You will need to make sure that you are writing your script for Python version 2.7, as this is the version that Splunk is using.
Once you have the script written and tested. You will need to create a command.conf file in your app's directory (e.g. "$SPLUNK_HOME/etc/apps/<yourApp>/local/commands.conf
"). This will be the method for informing Splunk that you have written a new script for it to use. The following is a simple example of how this may be setup, but you may wish to look at the spec file for more potential:
[yourCommand]
filename = /path/to/you/command.py
The following resources, can help here:
http://docs.splunk.com/Documentation/Splunk/5.0/admin/Commandsconf
http://docs.splunk.com/Documentation/Splunk/4.3.3/Developer/SearchScripts
You will then need to restart Splunk to apply these changes.
Now you will need to create a form that will handle the user's input. This view will include a the use of your script/command, "yourCommand
", where you would use the user input (e.g. in the form xml, this would be something like "$foo$
"). The following links would be able to help here:
http://docs.splunk.com/Documentation/Splunk/4.3.1/Developer/Step1CreateAForm
http://docs.splunk.com/Documentation/Splunk/4.3.1/Developer/AdvancedFormSearch
You should then be good to go.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I can't express the situation well..
*The Point is , User's input data( such as like word, apple, juice, any other word,) is stored in /etc/apps/[myapp]/lookup/mylookupfile.csv
*User's input data is writable in the splunk dashboard
Thanks to your help! 🙂
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'll have to apologise, however I don't understand your question.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi! How is your Day? 😄
Reading your appreciate Data, I have a question
"myscript.py" script is doing work when sourcetype or index data is kept
ex) index=* | myscript | stats func(field)..
Just I want that..
- when user put the data in splunk web Dashboard Panel,
- data saved and modified /etc/apps/[myapp]/lookups/mylookup.csv -> some data is changing my new data
