Enable Real-time Search in Splunk that expires automatically.

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..

(more…)

Read More

Create indexes for Splunk automatically.

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.

(more…)

Read More

Latest Top 10 Torrent Search Engines

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

(more…)

Read More

Samsung’s Galaxy S III – The Beast

Samsung’s Galaxy S III has really stood out this year as an enormous heavyweight in this new sport of the smart phone battle. AT&T’s new LTE network, 2GB of memory, 2100mAh battery, and WiFi channel bonding help to make Samsung’s flagship a beast in the ring. I’ve had AT&T’s Galaxy S III over a week now and not only am I impressed, but I keep finding more features to extend that wow factor. I’ll start with the official stats and follow up with more detailed remarks in areas that stood out to me more.

(more…)

Read More

HTC One S – A Real Contender

For starters you need to consider what I came from (HTC HD2 w/ Winmo 6.5) which was a huge misstep by HTC the hardware was awesome but it was held back by an outdated OS. Fast forward 2 years and now comes the ONE S again top of the line hardware but this time HTC gets it right by pairing it with the latest Android 4.0 ICS.

Things I like about this ONE (pun intended) it’s fast and I mean really FAST. The dual core 1.5GHz Snapdragon will make your head spin, even though its a little handicapped with just 1GB of RAM (should have been 2GB IMO), as a mid range user I’ve seen no lag regardless of what’s running. The screen may not be the best on the market but after doing some comparisons with the naked eye you’d be hard pressed to tell a difference in resolution. The size of the screen however is not on par with where the market seems to be headed, at 4.3″ (what I would have considered the industry standard) it falls behind It’s competitors namely its sister the ONE X (4.7″), and the latest Samsung GSIII (4.8″). I wouldn’t call it a deal breaker because chances are if you really were shopping for or in need of a larger screen you already own a tablet.

(more…)

Read More