Skip to content

Instantly share code, notes, and snippets.

View ssoto's full-sized avatar
🏹
I'm an archer!

Sergio Soto ssoto

🏹
I'm an archer!
View GitHub Profile
import datetime
import json
PROJECT = 'sparta'
KIBANA_URL = 'http://elastic:9200/{}-'.format(PROJECT)
def send_to_kibana():
headers = {'Content-Type': 'application/json',
'Accept': 'text/plain'}
today = data['out'].strftime('%Y.%m.%d')