For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.1.deb | |
sudo dpkg -i elasticsearch-0.90.0.deb |
{ | |
"template": "logstash-*", | |
"settings" : { | |
"number_of_shards" : 2, | |
"number_of_replicas" : 1, | |
"index" : { | |
"query" : { "default_field" : "@message" }, | |
"store" : { "compress" : { "stored" : true, "tv": true } } | |
} | |
}, |
#!/bin/bash | |
# per-user install | |
echo 'if [ -z "$(type rbenv 2> /dev/null | head -1 | grep function)" ]; then' >> ~/.bashrc | |
echo ' export RBENV_ROOT=/usr/local/rbenv' >> ~/.bashrc | |
echo ' export PATH=$RBENV_ROOT/bin:$PATH' >> ~/.bashrc | |
echo ' eval "$(rbenv init -)"' >> ~/.bashrc | |
echo 'fi' >> ~/.bashrc |
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration packages="org.graylog2.log4j" shutdownHook="disable"> | |
<Appenders> | |
<RollingFile name="AccessLogs" fileName="/tmp/logs/access.log" | |
filePattern="/tmp/logs/access-%d{yyyy-MM-dd-HH-mm}-%i.log.gz"> | |
<PatternLayout> | |
<Pattern>%d %-5p: %c - %m%n</Pattern> | |
</PatternLayout> | |
<Policies> | |
<TimeBasedTriggeringPolicy modulate="true"/> |
<?PHP | |
require '/path/to/markdown-extra.php'; | |
$db = mysql_connect('localhost', 'root', 'password') or die(mysql_error()); | |
mysql_select_db('tylerio', $db) or die(mysql_error()); | |
$files = scandir('posts'); | |
array_shift($files); // . | |
array_shift($files); // .. |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
version: '2' | |
networks: | |
graylog.net: | |
volumes: | |
graylog.data.elastic: | |
driver: "local" | |
graylog.data.mongo: | |
driver: "local" |
# | |
# INPUT - Logstash listens on port 8514 for these logs. | |
# | |
input { | |
udp { | |
port => "8514" | |
type => "syslog-cisco" | |
} | |