Skip to content

Instantly share code, notes, and snippets.

View omkar0001's full-sized avatar

omkar omkar0001

  • Instafrsh
  • Gurgaon
View GitHub Profile
input {
beats {
port => 5044
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601} "
negate => true
what => previous
}
}
}
################### Filebeat Configuration Example #########################
############################# Filebeat ######################################
filebeat:
# List of prospectors to fetch data.
prospectors:
# Each - is a prospector. Below are the prospector specific configurations
-
# Paths that should be crawled and fetched. Glob based paths.
# To fetch all ".log" files from a specific level of subdirectories
init_config:
instances:
# For every instance, you need an `nginx_status_url` and can optionally
# supply a list of tags. This plugin requires nginx to be compiled with
# the nginx stub status module option, and activated with the correct
# configuration stanza. On debian/ubuntu, this is included in the
# `nginx-extras` package. For more details, see:
#
# http://docs.datadoghq.com/integrations/nginx/
init_config:
instances:
# The URL where elasticsearch accepts HTTP requests. This will be used to
# fetch statistics from the nodes and information about the cluster health.
#
# If you're using basic authentication with a 3rd party library, for example
# elasticsearch-http-basic, you will need to specify a value for username
# and password for every instance that requires authentication.
#
init_config:
instances:
- host: djangotest2.cnf9tnp58ewd.ap-southeast-1.rds.amazonaws.com
port: 5432
username: datadog1
password: AivZXZyy5UR3hCvLDatGwWsU
# username: my_username
# password: my_password
# the domain we want to get the cert for;
# technically it's possible to have multiple of this lines, but it only worked
# with one domain for me, another one only got one cert, so I would recommend
# separate config files per domain.
domains = webhook.idelivr.info
# increase key size
rsa-key-size = 2048 # Or 4096
# the current closed beta (as of 2015-Nov-07) is using this server
location '/.well-known/acme-challenge' {
allow all;
default_type "text/plain";
root /usr/share/nginx/letsencrypt;
try_files $uri /$1;
}
server {
listen 443;
server_name webhook.idelivr.info www.webhook.idelivr.info;
ssl on;
ssl_certificate /etc/letsencrypt/live/webhook.idelivr.info/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/webhook.idelivr.info/privkey.pem;
access_log off;
TrueAI Ltd is a London based Artificial Intelligence startup that automates customer support using Machine
Learning/Deep Learning. The company just closed its funding round and now looking to hire smart and strongly
motivated technical employees who are excited by the start-up environment and want to build the company together
with the founders. As a Front-end software engineer at True AI, you will specialize in building single-page web applications and chrome extensions, and responsible for the client facing side of the products.
More info:
* [Web page][1]
* [Pitch to Investors][2]
### Required Skills
Will create a config file for project. Name of the file would be trueai_config.py.
file: trueai_config.py
This file will contain all the config settings, related to the project. One of the main config settings, we will be storing
is, the elasticsearch indexes we are using. The value of the variable, depends on the environmental variable
TRUEAI_ENVIRONMENT
if getenv('TRUEAI_ENVIRONMENT', 'devel') == 'test':
ELASTICSEARCH_TRUEAI_INDEX = 'test_trueai'
else: