I'm trying to put some custom CSS into my splunk application. Until now I have managed to create the application.css file inside the appserver/static folder.
I can add stuff inside the CSS file, but I really don't like using vi/vim to save the file. So I am using firebug to inspect and modify my css on the fly, save it locally and then upload it to the server, but it takes time.
Problem is: I can't find the right place to put the firefile.php file inside the server and acces it to perform the required validation to add the site to the authorized firefile server.
My question is: Is it possible to set up firefile with splunk? If it's not, how do you do to edit and save painlessly your custom application.css?
I finally decided to edit the CSS using VIM, as the other solutions takes too much time (considering my very basic knowledge in web development)
I'm so sad.
Thanks for the insightful answers.
Could you not throw up a php server with a stub page that loads a symbolic link to the application.css ?
You'd be able to tweak the css in the window that loaded the stub, then refresh the splunk page to see if it worked.
Thanks for the insights, I will do it manually as it seems that there is no way to automate the process. I will try to develop an app for it though when I have a little time.
You could probably use a python script that runs from start-up (via inputs, but with NO printing to STDOUT, otherwise you will affect your license limit) and checks takes data out of the PHP file and put it into an application.css file, although this seems a bit "excessive".
Don't believe this is possible to interact with Splunk in this way.
Does FireFile not support CSS output? - Bit odd to allow CSS changes, but not output in the standard file format.
If you don't like using Vi(m) - although it is a powerful tool and good fun - typically people use tools like Nano on Nix systems. This is a bit more use friendly and easier to use.
You could alway write create/modify the CSS into a text editor and the "Copy and Paste" into your server-side CSS file.
If you have a blank application.css file you could just open in it vi, having copied the text to your clipboard, and the press "i" to insert, and then right-click paste (or an alternative, that most terminals/prompts will allow).
Probably not the answer you are looking for, just some food for thought.
@richcollier, definately if we are talking about the file transfer method... loads of ways to achieve that. I was just thinking on the level of pure simplicity... nothing quicker than ol' "Copy and Paste" 😉 Hah!
Thanks! I was guessing that I will have to do it this way (performing all the modification locally, and then paste it somehow server side...)
I don't know why it still has to be done this way when there is such powerfull tools out there.