Requirements:
Manual deployment
To manually deploy and install Saltshaker, you need to prepare the Python environment first.
- download: $ git clone https://github.com/yueyongyue/saltshaker_api.git
{ | |
"size": 0, | |
"query": { | |
"bool": { | |
"must": [ | |
], | |
"must_not": [ | |
{ | |
"match_phrase": { | |
"error": { |
{ | |
"order": 0, | |
"index_patterns": [ | |
"clog-dovecot_longterm-*" | |
], | |
"settings": { | |
"index": { | |
"lifecycle": { | |
"name": "tiering_longterm" | |
}, |
output { | |
if "_dissectfailure" in [tags] { | |
file { | |
path => '/opt/logstash/logs/dissectfailure.txt' | |
codec => rubydebug | |
} | |
} | |
if "_geoip_lookup_failure" in [tags] { | |
file { | |
path => '/opt/logstash/logs/geoipfailure.txt' |
{ | |
"_shards": { | |
"total": 40, | |
"successful": 40, | |
"failed": 0 | |
}, | |
"_all": { | |
"primaries": { | |
"docs": { | |
"count": 2002446964, |
Requirements:
Manual deployment
To manually deploy and install Saltshaker, you need to prepare the Python environment first.
Requirements:
Manual deployment
To manually deploy and install Saltshaker, you need to prepare the Python environment first.
{ | |
"host" => "tb-clog-ls1", | |
"@timestamp" => 2019-01-30T12:00:22.231Z, | |
"@version" => "1", | |
"message" => "<PurchaseOrders><PurchaseOrder PurchaseOrderNumber=\"99503\" OrderDate=\"1999-10-20\"><Address Type=\"Shipping\"><Name>Ellen Adams</Name><Street>123 Maple Street</Street><City>Mill Valley</City><State>CA</State><Zip>10999</Zip><Country>USA</Country></Address><DeliveryNotes>Please leave packages in shed by driveway.</DeliveryNotes><Items><Item PartNumber=\"872-AA\"><ProductName>Lawnmower</ProductName><Quantity>1</Quantity><USPrice>148.95</USPrice><Comment>Confirm this is electric</Comment></Item><Item PartNumber=\"926-AA\"><ProductName>Baby Monitor</ProductName><Quantity>2</Quantity><USPrice>39.98</USPrice><ShipDate>1999-05-21</ShipDate></Item></Items></PurchaseOrder><PurchaseOrder PurchaseOrderNumber=\"99505\" OrderDate=\"1999-10-22\"><Address Type=\"Shipping\"><Name>Cristian Osorio</Name><Street>456 Main Street</Street><City>Buffalo</City><State>NY</State><Zip>98112</Zip><Country>U |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import logging | |
import imaplib | |
import email | |
import email.header | |
from datetime import datetime, timedelta | |
import time |
I hereby claim:
To claim this, I am signing this object:
from django.http import HttpResponse | |
from django.shortcuts import render | |
from django.contrib.auth.decorators import login_required | |
from .models import Student, Dog | |
# import the logging library | |
import logging | |
# Get an instance of a logger |