Skip to content

Instantly share code, notes, and snippets.

View tbragin's full-sized avatar

Tanya Bragin tbragin

View GitHub Profile
Sending Logstash's logs to /Users/tanya/logstash-6.0.0-beta1/logs which is now configured via log4j2.properties
2017-08-03 16:41:31,971 main ERROR Unable to create file /Users/tanya/logstash-6.0.0-beta1/logs/logstash-plain.log java.io.IOException: Not a directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1012)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:421)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:403)
at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:73)
at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:81)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:103)
at org.apache.logging.log4j.core.appender.RollingFileAppen
optmzr log [21:46:43.756] [fatal][optimize] Lazy optimization failed in 85.11 secondsError: Optimizations failure.
ERROR in ./src/core_plugins/metrics/public/visualizations/lib/flot.js
Module not found: Error: Cannot resolve module 'flot-charts/jquery.flot' in /Users/tanya/kibana-master-0103/src/core_plugins/metrics/public/visualizations/lib
@ ./src/core_plugins/metrics/public/visualizations/lib/flot.js 5:0-34
ERROR in ./src/core_plugins/metrics/public/visualizations/lib/flot.js
Module not found: Error: Cannot resolve module 'flot-charts/jquery.flot.time' in /Users/tanya/kibana-master-0103/src/core_plugins/metrics/public/visualizations/lib
@ ./src/core_plugins/metrics/public/visualizations/lib/flot.js 6:0-39
@tbragin
tbragin / gist:81f1651cce16a485aa593187891c94fa
Created January 4, 2017 04:33
PR#9509 optimization startup errors
This file has been truncated, but you can view the full file.
optmzr log [04:18:44.463] [fatal][optimize] Lazy optimization failed in 56.56 secondsError: Optimizations failure.
WARNING in ./src/ui/public/styles/spinner.less
Module build failed: ModuleBuildError: Module build failed: URIError: URI malformed
at decodeURIComponent (native)
at /Users/tanya/kibana-master-1210/node_modules/loader-utils/index.js:101:12
at Array.forEach (native)
at Object.parseQuery (/Users/tanya/kibana-master-1210/node_modules/loader-utils/index.js:78:12)
at Object.module.exports (/Users/tanya/kibana-master-1210/node_modules/autoprefixer-loader/index.js:12:30)
at DependenciesBlock.onModuleBuildFailed (/Users/tanya/kibana-master-1210/node_modules/webpack-core/lib/NormalModuleMixin.js:315:19)
#Github API docs: http://pygithub.github.io/PyGithub/v1/reference.html
from github import Github, GithubException, UnknownObjectException
# other libraries
import re
from datetime import datetime
import sys
import csv
import unicodedata
83.149.9.216 - - [17/Sep/2014:07:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [17/Sep/2014:07:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-dashboard3.png HTTP/1.1" 200 171717 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [17/Sep/2014:07:13:44 +0000] "GET /presentations/logstash-monitorama-2013/plugin/highlight/highlight.js HTTP/1.1" 200 26185 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [17/Sep/2014:07:13:44 +0
@tbragin
tbragin / Apache2_Logstash_Config
Created July 22, 2015 13:34
Logstash version tested: 1.5.0
input {
stdin { }
}
filter {
grok {
match => {
"message" => '%{IPORHOST:clientip} %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "%{WORD:verb} %{DATA:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response:int} (?:-|%{NUMBER:bytes:int}) %{QS:referrer} %{QS:agent}'
}
}
@tbragin
tbragin / Apache2_Kibana4_Dashbaord
Created July 22, 2015 13:32
Confirmed with Kibana version: 4.1.1
[
{
"_id": "Apache2-Dashboard",
"_type": "dashboard",
"_source": {
"title": "Apache2 Dashboard",
"hits": 0,
"description": "",
"panelsJSON": "[{\"col\":1,\"id\":\"Total-Events\",\"row\":1,\"size_x\":3,\"size_y\":2,\"type\":\"visualization\"},{\"col\":4,\"id\":\"Total-Events-Overtime\",\"row\":1,\"size_x\":9,\"size_y\":6,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Unique-Visitors\",\"row\":3,\"size_x\":3,\"size_y\":2,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Unique-Page-Views\",\"row\":5,\"size_x\":3,\"size_y\":2,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Visitor-Countries\",\"row\":7,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":4,\"id\":\"Visitor-Devices\",\"row\":7,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Visitor-OS\",\"row\":10,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":4,\"id\":\"Visitor-Timezones\",\"row\":10,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":7,\"id\":\"V