Profile cover photo
Profile photo
Ravi Gadgil
16 followers
16 followers
About
Ravi's posts

Post has attachment
Script to take daily backup of RDS logs
RDS has the functionality to provide us with Slow Log and Error Log but they are stored for specific time period only until they are being rotated by AWS. So its good practice to take backup of these logs at your own end on daily bases or your preferred tim...

Post has attachment
How to delete multiple user in linux
 To delete multiple user in Linux, refer the following video. If you want to delete multiple system users in Linux following command can be used.. for user in `cat del.user`;do userdel $user;done user : its the variable used to have values from del.user. de...

Post has attachment

Post has attachment

Post has attachment
How to add multiple users in Linux with or without password
If you want to add multiple users in Linux following steps can be used. Create a file having list of user which need to be added: [root@localhost ravi]# cat add.user
user1
user2
user3
user4
user5 Run the following command to add users: [root@localhost ravi...

Post has attachment
How to analyze S3 logs and move to Local system.
Amazon web services move there web logs or any type of logs in S3 so in order to analyze them we need to parse them either via any third party application or download them individually and work on it. Following script will help us to parse S3 files directly...

Post has attachment
How to analyze AWS RDS Slow Query
Amazon RDS has the feature in which we can log the slow queries and than analyze them to find the queries which are making our Database slow. There are few prerequisites to this: 1. Slow log query should be enabled in RDS. 2. AWS RDS CLI should be present. ...

Post has attachment
How to install Percona MySQL tools
Persona has lots of tools to analyses MySQL data and very useful information can be extracted from them. Installing via Yum: [root@ip-10-0-1-220 ravi]# yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rp...

Post has attachment
How to setup AWS RDS CLI
AWS provides the its CLI tools but few of RDS functionalities don't work on them so in order to make them work AWS RDS CLI is very helpful. Download the RDS CLI: [root@server downloads]# wget http://s3.amazonaws.com/rds-downloads/RDSCli.zip Unzip the downlo...

Post has attachment
Script to add logs in Logentires in case of Shared hosting Web Server.
Logentries is a very good tool to store and analyze logs in central location but when we are storing logs from a  Nginx/Apache shared hosting environment it gets complex as we need to tag each log to which host it belong. I am using rsyslog to forward to se...
Wait while more posts are being loaded