Maintaining a unix/linux based server is not easy ,especially with so many log files and if you were to trace an attack on your system ,it goes from /var/log /whatnot :) .
Many a times when i needed to look at some clean logs like my sendmail logs ,http logs ,looking through the text files can be a horrible experience .
Today i came upon splunk .Its a wonderful tool to analyze log files and provides you with an easy and intuitive user interface .
First the screenshots
Steps to get splunk up and running
- Download Link
- tar -zxvf filename.tar.gz
- cd filename
- ./bin/setSplunkEnv
- ./bin/splunk
and now you must be able to run splunk ,and visit the splunk page at http://localhost:8000
Its a very useful and iam sure setting it up :) may be for those who maintain big servers should take a look at it .
[tags]splunk,server[/tags]

Yeah ! its again and its bigger. Foss.in 2007 is big on most counts and more importantly for me .its the number of days and money :-( .
Its spread of 5 days and i can tell you ,its too long.Two days seemed very ideal and perfect for me .And the other is the money ,to attend the entire event its going to take more than 1K and yes you always have the option to attend just the main conference but when you can learn so much and meet some really fabolous people there ,you really want to be there on all the days . i dont think thats going to happen .sad me :( but yesh i hope i get to see atleast the main conference thankfully its still priced at 500rs .
I know after i put up a media temple *wishlist* i was gifted one although by a family member ;) and now i put my second one here . An entry pass to the foss.in/2007 . anyone ?
And incase you are thinking 1000rs is too much ,i swear its worth more than that .You get to see some really good people and you get to hear from people who actually *code* than most speakers who pretend to are, talk about software management and software engineering ( i have listened enough of this thanks to 6th sem ) .
last year when myself and hari were there we got to hear people like Rasmus(the guy who created PHP) ,an indian kernel hacker ( she was the keynote speaker) and particpate in the many BoF sessions . And ofcourse the beautiful calender containing Kalyan varma’s photographs and the t-shirt .
I will be there surely atleast for the first two days ,if you intend to come then lets join up :-) .
[tags]foss.in.foss.in2007,foss.in/2007[/tags]

Mundu ,one of the leading mobile application developer ( IM ) have released their application for messaging across various protocols for iphone.It looks great and iam a big fan of mundu too .All this fine but the only thing that is a turn off is the cost .The website doesn’t mention anything about the cost and mundu usually charges 11$ for its other IM apps. I wonder how they will survive if they are charging for the software .Earning through trusted ad’s seems the best way .And what happens when other guys in the same business like meebo put their app. Meeebo has a huge fan following and iam sure they won’t be charging for their application anytime .And even worse what when Apple decides to introduce its own IM application .how will mundu survive ? .
And worse what happens when you are in india and you want to use it .11$ is atleast 500 bucks and that much for a IM ? no way !!
I wish them the best though :-) . Another application that iam really looking forward to is the twitter app for iphone already we have been seeing some developers putting it together .
*wish* an iphone :p
[tags]iphone,IM,mundu[/tags]
yeah ! you can do all these and much more with your iphone .
You can ssh using your iphone to any server and if you are wondering how ? here it sis
and GizmoGadget reports that you can run your own web server using python,apache and other opensource tools.read about that experiment here
The craze to create third party application for web sites is well known ( facebook,twitter) .But the iphone has brought a new thing here .Everyone is busy writing their thirdparty applications for the iphone .
The big and my favourite Media temple has even brought out there control exclusively for iphone .Now thats quick and fast right ?
What this means is now you can test your browser compatibility right on your iphone .
Last time we heard about shell in iphone was when people cracked out its username ,passwd and also its root password . now ssh access ,apache and what not seems so promising :-) .
[tags]iphone,media temple,mediatemple[/tags]
Planetplanet is a rss feed aggregator hacked in python.It’s extremely popular and we use it both internally and also on our GLUG site .
And the saddest thing ,it doesn’t have an installer yet :( and its a pain setting it up again and again .I have scribbled down a simple installer which *works* provided you obey all the rules it asks to :P .
here is the script
#!/usr/bin/env python
''' This script can be used to install planetplanet ,the python based RSS feed aggregator .
Author: S.Theyagarajan
Email: theyaga@gmail.com
URL : http://theyagar.info
Download URL: http://theyagar.info/code/planet-installer.txt '''
" Example Usage : ./installer-planet.py -p /home/codelabs/planet-2.0 -t fancy -o /home/codelabs/www/ -n Planet -a GLUG -e glugt@glugt.org "
from optparse import OptionParser
from commands import *
import commands
import optparse ,sys,os
usage = "Usage:\n %prog --p Planet_directory -t theme_name -o output_directory -n planet_name -a Admin_name -e Admin_email "
print usage
parser = OptionParser (usage)
parser.add_option ("-p", "--pdir", dest="pdirname")
parser.add_option ("-t", "--theme", dest="theme")
parser.add_option ("-o", "--outdir", dest="outdir")
parser.add_option ("-n", "--planetname", dest="pname")
parser.add_option ("-a", "--admin", dest="admin")
parser.add_option ("-e", "--email", dest="adminemail")
parser.add_option ("-l", "--link", dest="link")
(options, args) = parser.parse_args ()
if options.pdirname == None:
print "PlanetPlanet directory cannot be empty "
else:
pdirname=options.pdirname
print pdirname
theme=options.theme
print theme
outdir=options.outdir
print outdir
pname=options.pname
print pname
print "Planet Name is "+pname
admin=options.admin
print "Admin Name is"+ admin
adminemail=options.adminemail
print "Admin email is"+ adminemail
link=options.link
cmd= "cp -r "+ pdirname +"/examples/"+ theme +"/"+" "+ outdir
print cmd
cache_cmd= "cp -r "+ pdirname + "/examples/" + "cache" + "/" + " " + outdir
print cache_cmd
static_cmd= "cp -r "+ pdirname + "/examples/" + theme + "/*" + " " + outdir
print static_cmd
xml_cmd= "cp -r " + pdirname + "/examples/*.tmpl" + " " + outdir
print xml_cmd
rest_cmd= "cp -r " + pdirname + "/planet*" + " " + outdir
print rest_cmd
output=commands.getoutput(cmd)
output=commands.getoutput(cache_cmd)
output=commands.getoutput(xml_cmd)
output=commands.getoutput(rest_cmd)
import ConfigParser
cf=outdir + theme + "/config.ini"
print cf
config=ConfigParser.ConfigParser()
fp=file(cf,'rw')
config.readfp(fp)
print config.sections()
config.set('Planet','name',pname)
config.set('Planet','owner_name',admin)
config.set('Planet','owner_email',adminemail)
config.set('Planet','link',link)
config.set('Planet','days_per_page','100')
config.set('Planet','template_files',outdir + "" + theme + "/" + "index.html.tmpl" + " " + outdir + "atom.xml.tmpl" + " " + outdir + "foafroll.xml.tmpl" + " " + outdir + "opml.xml.tmpl" + " " + outdir+"rss20.xml.tmpl" + " " + outdir + "rss10.xml.tmpl" )
config.set('Planet','cache_directory',outdir + "/cache")
config.set('Planet','output_dir',outdir)
#config.remove_section('examples/fancy/index.html.tmpl')
config.add_section(outdir + "/" + theme + "/index.html.tmpl")
#config.set(outdir + theme + "/index.html.tmpl",'days_per_page','7')
fp.close()
fp=open(cf,'w')
config.write(fp)
fp.close()
cmd=" python " + outdir + "planet.py" + " " +outdir+theme+ "config.ini"
print cmd
output=commands.getstatusoutput(cmd)
And how do you use it ?
./installer-planet.py -p /home/codelabs/planet-2.0 -t fancy -o /home/codelabs/www/ -n Planet -a GLUG -e glugt@glugt.org
and you can also have the python file here http://theyagar.info/code/installer-python.txt
And what did i learn ? .
ConfigParser module.Its lovely ,makes it lot easier to edit the config files like the ones you find in httpd.conf so customization is just a program away no matter how many machines and time :-)
Go Python !!
[tags]planetplanet,python,hacks[/tags]





