Skip to content

Instantly share code, notes, and snippets.

View gingerwizard's full-sized avatar

Dale McDiarmid gingerwizard

View GitHub Profile
import json
import re
from itertools import islice, chain
from elastic_workplace_search import Client
import os
import requests
#converts camel case fields from trello to workplace search's prefered snake case
pattern = re.compile(r'(?<!^)(?=[A-Z])')
default_user='ent_search'
id first_name last_name email gender skills department job_title company
1 Larine Schulz [email protected] Female WiFi Human Resources Analog Circuit Design manager Rhybox
2 Clo Matussov [email protected] Female VDM Marketing Structural Engineer Feedfish
3 Dwight Turnock [email protected] Male Jerseys Support Administrative Officer Youspan
4 Allene Bantick [email protected] Female NS2 Research and Development Clinical Specialist Wordtune
5 Olivette Revey [email protected] Female HDPE Marketing GIS Technical Architect Dabshots
6 Ashbey Lock [email protected] Male Feature Films Product Management Product Engineer Linklinks
7 Berkie Managh [email protected] Male SAP PM Module Accounting Associate Professor Gigabox
8 Radcliffe Ayling [email protected] Male HCV Product Management Junior Executive Flashspan
9 Wendye L'Hommee [email protected] Female EBPP Product Management Nurse Practicioner Divavu
@gingerwizard
gingerwizard / application.logs.md
Last active January 29, 2021 13:37
Application Logs - Keyword vs Wildcard

Application Logs

Keyword

Summary

total disk:     12,429,347,214
num docs:           39,304,067
stored fields:   6,881,568,042
@gingerwizard
gingerwizard / nginx.access.md
Created January 29, 2021 13:37
Nginx Access - Keyword vs Wildcard

Nginx Access

Keyword

Summary

total disk:     10,408,867,417
num docs:           22,483,527
stored fields:   5,915,157,692
@gingerwizard
gingerwizard / system.syslog.md
Created January 29, 2021 13:39
System Syslog - Keyword vs Wildcard

System syslogs

Keyword

Summary

total disk:      6,040,308,300
num docs:           21,665,809
stored fields:   2,675,956,816
@gingerwizard
gingerwizard / system.auth.md
Created January 29, 2021 13:40
System Auth Logs - Keyword vs Wildcard

System Auth Logs

Keyword

Summary

total disk:      8,573,127,892
num docs:           32,374,780
stored fields:   4,081,617,678
@gingerwizard
gingerwizard / nginx.error.md
Created January 29, 2021 13:40
Nginx Error Logs - Keyword vs Wildcard

Nginx Error

Keyword

Summary

total disk:      3,893,440,819
num docs:           12,575,011
stored fields:   1,866,619,745
term vectors:                0
@gingerwizard
gingerwizard / apache.access.md
Created January 29, 2021 13:42
Apache Access Logs - Keyword vs Wildcard

Apache Access

Keyword

Summary

total disk:      3,102,267,053
num docs:           10,137,925
stored fields:   1,845,960,222
@gingerwizard
gingerwizard / mysql.slow.md
Created January 29, 2021 13:44
Mysql Slow Logs - Keyword vs Wildcard

Mysql Slowlog

Keyword

Summary

total disk:      1,240,770,390
num docs:            6,934,500
stored fields:     606,953,425
@gingerwizard
gingerwizard / kafka.log.md
Created January 29, 2021 13:46
Kafka Logs - Keyword vs Wildcard

Kafka Logs

Keyword

Summary

total disk:      1,478,046,755
num docs:            9,274,210
stored fields:     654,680,144