Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Neto, Aristides da Silva neto-developer

🎯
Focusing
View GitHub Profile
@neto-developer
neto-developer / gist:074ccc015e2f300a2cdce4b3d2336597
Created Apr 14, 2020
Filter a Apache Log in a Range of DateTime
View gist:074ccc015e2f300a2cdce4b3d2336597
Considering $4 is the position of DataTime on access_log file
cat /var/log/httpd/access_log | awk '$4 >= "[14/Apr/2020:09:50:00" && $4 < "[14/Apr/2020:10:15:00"'
View Template para Busca de Produtos com Indice para Correção Ortografica
Analyser:
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-suggesters-phrase.html
Template:
POST /_template/template_produtos
{
"index_patterns": [
"produto*"
],
"settings": {
You can’t perform that action at this time.