Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
176 additions
and
29 deletions.
There are no files selected for viewing
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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
filter { | ||
|
||
grok { | ||
match => [ "message" , "%{COMBINEDAPACHELOG}"] | ||
overwrite => [ "message" ] | ||
add_tag => [ "apache_log" ] | ||
} | ||
|
||
if "apache_log" in [tags] { | ||
geoip { | ||
source => "clientip" | ||
target => "geoip" | ||
add_tag => [ "apache_geoip" ] | ||
} | ||
|
||
date { | ||
match => [ "timestamp" , "dd/MMM/YYYY:HH:mm:ss Z" ] | ||
remove_field => [ "timestamp" ] | ||
} | ||
|
||
useragent { | ||
source => "agent" | ||
} | ||
|
||
mutate { | ||
convert => ["response", "integer"] | ||
convert => ["bytes", "integer"] | ||
convert => ["responsetime", "float"] | ||
} | ||
} | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<div ng-if="currentTab == 3" class="bg-lightx d-block"> | ||
<div><h4>Example Log Messages</h4></div> | ||
<table class="table table-striped table-sm"> | ||
<tr class="d-flex" ng-repeat="(key, example) in this.logExamples track by $index"> | ||
<td class="col-2">{{ example.type }} </td> | ||
<td class="col-10">{{ example.text }} </td> | ||
<tr class="d-flex"> | ||
<td class="col-2">Type</td> | ||
<td class="col-8">Message Text</td> | ||
<td class="col-2">Action</td> | ||
</tr> | ||
</table> | ||
<br> | ||
<div><h4>Example Logstash Filters</h4></div> | ||
<div>Coming soon...</div> | ||
<table class="table table-striped table-sm"> | ||
<tr class="d-flex" ng-repeat="(key, example) in this.logFilters track by $index"> | ||
|
||
<tr class="d-flex" ng-repeat="(key, example) in this.logExamples track by $index"> | ||
<td class="col-2">{{ example.type }} </td> | ||
<td class="col-10">{{ example.text }} </td> | ||
<td class="col-8">{{ example.text }} </td> | ||
<td class="col-2"> | ||
<a href="#" ng-click="copyExample($index)" class="btn btn-outline-primary btn-sm">Copy</a> | ||
<a href="#" ng-click="tryExample($index)" class="btn btn-outline-primary btn-sm">Try</a> | ||
<a href="#" ng-click="toggleExampleFilter($index)" class="btn btn-outline-primary btn-sm">Filter</a> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
filter { | ||
|
||
grok { | ||
match => [ "message" , "%{COMBINEDAPACHELOG}"] | ||
overwrite => [ "message" ] | ||
add_tag => [ "apache_log" ] | ||
} | ||
|
||
geoip { | ||
source => "clientip" | ||
target => "geoip" | ||
add_tag => [ "apache_geoip" ] | ||
} | ||
|
||
date { | ||
match => [ "timestamp" , "dd/MMM/YYYY:HH:mm:ss Z" ] | ||
remove_field => [ "timestamp" ] | ||
} | ||
|
||
useragent { | ||
source => "agent" | ||
} | ||
|
||
mutate { | ||
convert => ["response", "integer"] | ||
convert => ["bytes", "integer"] | ||
convert => ["responsetime", "float"] | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
filter { | ||
|
||
grok { | ||
match => [ "message" , "%{COMBINEDAPACHELOG}+%{GREEDYDATA:extra_fields}"] | ||
overwrite => [ "message" ] | ||
} | ||
|
||
mutate { | ||
convert => ["response", "integer"] | ||
convert => ["bytes", "integer"] | ||
convert => ["responsetime", "float"] | ||
} | ||
|
||
geoip { | ||
source => "clientip" | ||
target => "geoip" | ||
add_tag => [ "nginx-geoip" ] | ||
} | ||
|
||
date { | ||
match => [ "timestamp" , "dd/MMM/YYYY:HH:mm:ss Z" ] | ||
remove_field => [ "timestamp" ] | ||
} | ||
|
||
useragent { | ||
source => "agent" | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="container row no-gutters"> | ||
<div class="pt-1 col-12"> | ||
<div class="d-inline-block">Messages from Logstash: {{ messagesFromLS.length }}</div> | ||
<div ng-if="messagesFromLS.length > 0" class="d-inline-block float-right"> | ||
<a href="#" ng-click="clearMessagesFromLS()" class="btn btn-outline-primary btn-sm">Clear</a> | ||
</div> | ||
</div> | ||
<div class="container col-12"> | ||
<div class="pre-card resizable card card-body ls-card" ng-repeat="obj in messagesFromLS | orderBy:'-inc' track by obj.inc"> | ||
<div hljs hljs-source="'{{ obj.msg | prettyJSON }}'"></div> | ||
</div> | ||
</div> | ||
</div> |
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
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