Here I wrote a script that allows you to enable real-time search for a role and set a timer for it to disable again automatically. I came up with the idea because we wanted the ability for people to use real-time search, but without the fear of them abusing it. I used a Splunk API and a little Bash Shell scripting to make this work. It works like this, you kick off the script on the SH passing it the role and the time (in minutes) that you want it to be enabled for. The script uses an API call to add the rtsearch capability to the role and the removes it again when the timer expires. I designed this script so that it will collect the current role capabilities before anything is changed so that after the timer expires it can restore the capabilities back to what they were without rtsearch. This script could easily be converted to accept any capability as another argument and allow you to add anything you want other than rtsearch.
Script after the break..
Our Splunk environment uses nearly a thousand indexes per region or cluster with many more being added daily. Why so many indexes, well it’s all about administration. Let us say you have 5 separate websites or apps and each of the sites are managed by a separate team. Maybe each of these sites has a test and production instance, so for each site there is an index for test and an index for production. This means we have 10 indexes now for these 5 sites and those indexes can be specifically assigned to individual teams. Now imagine our environment with hundreds of sites with different environments and most of these managed by different teams. That is how we have such a large number of indexes with more being added every day. So the standard process of adding indexes just doesn’t make sense for our needs. So, I created some bash scripts that are run by cron jobs to automate the process.
Recently Demonoid was subject to a DDOS attack that crippled the site. This followed by a police raid has potentially shut the doors on Demonoid forever, sniff sniff. It’s because of this I have been asked by a few people where do I go now, what do you use? I actually didn’t have much of an answer as I had been strictly using Demonoid for a while. I wrote a post a while back about Tribler, which eliminates the need for an actual website that all current torrent search engines use. When I originally wrote the post it was fairly new and had a smaller following. Since then it has picked up steam and I think now is the time for Tribler. That being said I will still give you an updated list for the current top ten torrent search engines as reported by Torrent Freak. If you have a torrent search engine that you love to use and it’s not mentioned below, please drop a comment about it. -Greg