Skip to content

Instantly share code, notes, and snippets.

View keremcankabadayi's full-sized avatar

keremcankabadayi keremcankabadayi

  • 12:32 (UTC +03:00)
View GitHub Profile
{
"query": {
"match": {
"title": "tevfik"
}
},
"highlight" : {
"fields" : {
"title" : {}
}
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
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
@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" "-"
@keremcankabadayi
keremcankabadayi / elkstackinstalling.txt
Last active March 26, 2018 20:08
Elk stack Installation
sudo apt-get update
sudo apt update && apt -y upgrade
sudo apt install apt-transport-https software-properties-common wget
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer
java -version
## This is version checker. It should be java version "1.8.0_131"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
@keremcankabadayi
keremcankabadayi / last.json
Last active May 10, 2018 11:48
Elastic-Percolator Research - Issues
GET /_cat/indices?v
DELETE *
PUT /my-index
{
"settings": {
"analysis": {
"analyzer": {
"standard_lowercase_example": {
## filebeat.yml
- type: log
# Change to true to enable this prospector configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /home/tez/anaweb3/access.log.*
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
{
"swagger": "2.0",
"info": {
"description": "## TMF API Reference : TMF 673 - Geographic Address Management\n### Release : 17.5 - January 2018\n\nThe Geographic Address API provides a standardized client interface to an Address management system.\nIt allows looking for worldwide addresses.\nIt can also be used to validate geographic address data, to be sure that it corresponds to a real address.\nFinally, it can be used to look for an address by: searching an area as a start (city, town …), then zooming on the streets of this area, and finally listing all the street segments (numbers) in a street.\n\n### Resources\n- GeographicAddress\n\n### Operations\nGeographic Address Management API performs the following operations :\n- Retrieve a geographic address or a collection of geographic addresses",
"version": "1.6",
"title": "API GeographicAddress"
},
"host": "serverRoot",
"basePath": "/geographicAddressManagement/v1/",
"schemes": [
var _ = require("lodash");
var builder = require('xmlbuilder');
const consts = require('./constants');
var xml = builder.create("epConfiguration", {version: '1.0', encoding: 'UTF-8'});
var newVar;
function addChild(sqName, sqValue){