This is a short step-by-step guide on installing ElasticSearch LogStash and Kibana Stack on a CentOS environment to gather and analyze logs.
rpm -ivh https://dl.dropboxusercontent.com/u/5756075/jdk-7u45-linux-x64.rpm
| <?php | |
| /* MODEL */ | |
| class Some_Model extends Eden_Sql_model { | |
| protected $_table = 'some_table'; | |
| public function __construct($database = null) { | |
| $this->_database = $database ? $database : front()->database(); | |
| //do some other things here | |
| } |
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| st = status | |
| s = status | |
| ci = commit | |
| c = commit | |
| br = branch | |
| a = add | |
| d = diff |
| #!/bin/bash | |
| NPM=~/.nvm/versions/node/v0.12.0/bin/npm | |
| $NPM install -g mocha | |
| $NPM install -g chai | |
| $NPM install -g xunit-file | |
| $NPM install -g jshint | |
| $NPM install -g nock | |
| $NPM install -g supertest |
| sudo bash | |
| wget http://redis.googlecode.com/files/redis-2.6.0.tar.gz | |
| tar xzf redis-2.6.0.tar.gz | |
| cd redis-2.6.0 | |
| make | |
| sudo make install clean | |
| # autostart in /etc/rc.local before "exit 0" add: | |
| # /usr/local/bin/redis-server /etc/redis/redis.conf |
##Setup initial dependences
sudo yum update
sudo yum install wget
sudo yum install curl
sudo yum install httpd
##Setup ElasticSearch
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
| # Output json-esque output for logstash to parse easily. | |
| http { | |
| # ... | |
| log_format logstash_json '{"@timestamp": "$time_iso8601", ' | |
| '"remote_addr": "$remote_addr", ' | |
| '"remote_user": "$remote_user", ' | |
| '"body_bytes_sent": "$body_bytes_sent", ' | |
| '"request_time": "$request_time", ' |
In Laravel 3 URL::secure/Redirect::secure got overridden by the ssl config. Nice for testing locally when you don't have ssl setup.
In Laravel 4 they took it out. Why? Fuck knows...
Anyway heres how to get it working again.
#[CHANGES in L4.2]#