Skip to content

Instantly share code, notes, and snippets.

View keremcankabadayi's full-sized avatar

keremcankabadayi keremcankabadayi

  • 14:38 (UTC +03:00)
View GitHub Profile
@keremcankabadayi
keremcankabadayi / examplelog.txt
Last active March 26, 2018 20:06
nginx.conf & nginx.pattern
93.87.248.208 - - [17/Mar/2018:21:05:19 +0300] "GET /wp-admin HTTP/1.1" 200 5015 0.738 0.738 ."-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/5350 (KHTML, like Gecko) Chrome/13.0.829.0 Safari/5350" "-"
sudo apt-get update && sudo apt-get install zsh
zsh --version
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cd $ZSH_CUSTOM/plugins/
wget https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/colorize
wget https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/copydir
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting
https://github.com/moshe/elasticsearch_loader
$ pip install elasticsearch-loader
# json dosyasının formatı diğer dosya gibi olacak
sonra elasticsearch ve kibana çalıştır
$ elasticsearch_loader --index titles --type incident json titles.json
# titles.json dosyanın olduğun dizinde çalıştır veya en sona path yaz
# kibana console gir
http://localhost:5601/app/kibana#/dev_tools/console?_g=()
// ALTTAKİLER KİBANA CONSOLE YAZILACAK
{
"query": {
"match": {
"title": "tevfik"
}
},
"highlight" : {
"fields" : {
"title" : {}
}