This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import logging | |
import time | |
import datetime | |
import csv | |
logging.basicConfig(filename='logs/eneo_coupures.log', | |
level=logging.INFO, | |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
######## | |
## Remi Tassing | |
## | |
## Customize properties based on template and configuration file | |
## | |
import argparse | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE 'localhost:9200/my-index' | |
curl -XPUT 'localhost:9200/my-index' -d '{ | |
"mappings": { | |
"my-type": { | |
"properties": { | |
"message": { | |
"type": "string" | |
} | |
} |