Skip to content

Commit

Permalink
support for 7.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sivasamyk committed Oct 4, 2019
1 parent 2b7e698 commit 1f3a419
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LogTrail - Log Viewer plugin for Kibana

[![Github All Releases](https://img.shields.io/github/downloads/sivasamyk/logtrail/total.svg)](https://github.com/sivasamyk/logtrail/releases) [![Kibana 7.3.2](https://img.shields.io/badge/Kibana-v7.3.2-blue.svg)](https://www.elastic.co/guide/en/kibana/7.2/release-notes-7.3.2.html)
[![Github All Releases](https://img.shields.io/github/downloads/sivasamyk/logtrail/total.svg)](https://github.com/sivasamyk/logtrail/releases) [![Kibana 7.4.0](https://img.shields.io/badge/Kibana-v7.4.0-blue.svg)](https://www.elastic.co/guide/en/kibana/7.2/release-notes-7.4.0.html)
[![License](https://img.shields.io/github/license/sivasamyk/logtrail.svg)](https://github.com/sivasamyk/logtrail) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/sivasamyk)

LogTrail is a plugin for Kibana to view, analyze, search and tail log events from multiple hosts in realtime with devops friendly interface inspired by [Papertrail](https://papertrailapp.com/).
Expand All @@ -25,8 +25,8 @@ Installation
- Download and install Elasticsearch and Kibana
- Logtrail is supported and tested with Kibana 6.x and 5.x
- Install logtrail plugin (requires restart of Kibana after install)
- Kibana 7.3.2 : `./bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.31/logtrail-7.3.2-0.1.31.zip`
- Kibana 5.6.5 : `./bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.23/logtrail-5.7.3.2.1.23.zip`
- Kibana 7.4.0 : `./bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.31/logtrail-7.4.0-0.1.31.zip`
- Kibana 5.6.5 : `./bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.23/logtrail-5.7.4.0.1.23.zip`
- Other versions : [https://github.com/sivasamyk/logtrail/releases](https://github.com/sivasamyk/logtrail/releases)
- Kibana requires exact match of plugin version to the Kibana version. If you can't find logtrail plugin release for a Kibana release, follow the instrcutions [here](docs/how_to.md#2-update-kibanaversion-in-logtrail-plugin-archive) to update Kibana version in your logtrail plugin archive.
- Refer [Logtrail Config Examples Repo](https://github.com/sivasamyk/logtrail-config-examples) for sample configurations for syslog, Java app, Kubernetes logs.
Expand Down
6 changes: 3 additions & 3 deletions logtrail.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"index_patterns" : [
{
"es": {
"default_index": "filebeat-*"
"default_index": "kibana_sample_data_logs"
},
"tail_interval_in_seconds": 10,
"es_index_time_offset_in_seconds": 0,
Expand All @@ -17,8 +17,8 @@
"fields" : {
"mapping" : {
"timestamp" : "@timestamp",
"hostname" : "beat.hostname",
"program": "source",
"hostname" : "host",
"program": "machine.os",
"message": "message"
},
"message_format": "{{{message}}}",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Plugin to view, search & tail logs in Kibana",
"main": "index.js",
"kibana": {
"version": "7.3.2"
"version": "7.4.0"
},
"repository": {
"type": "git",
Expand Down
10 changes: 6 additions & 4 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import sugarDate from 'sugar-date';
import moment from 'moment-timezone';
import AnsiToHtml from 'ansi-to-html';

import { toastNotifications } from 'ui/notify';


import 'ui/autoload/modules';
import 'ui/autoload/styles';
import 'plugins/logtrail/css/main.css';
Expand All @@ -24,9 +27,8 @@ uiRoutes
document.title = 'LogTrail - Kibana';

app.controller('logtrail', function ($scope, kbnUrl, $route, $routeParams,
$window, $interval, $http, $document, $timeout, $location, $sce, Notifier) {
$window, $interval, $http, $document, $timeout, $location, $sce) {

const notify = new Notifier();
$scope.title = 'LogTrail';
$scope.description = 'Plugin to view, search & tail logs in Kibana';
$scope.userSearchText = null;
Expand Down Expand Up @@ -137,7 +139,7 @@ app.controller('logtrail', function ($scope, kbnUrl, $route, $routeParams,
updateEventView(resp.data.resp,actions,order);
} else {
console.error('Error while fetching events ' , resp);
notify.error('Exception while executing search query :' + resp.data.resp.msg);
toastNotifications.addDanger('Exception while executing search query :' + resp.data.resp.msg);
}
});
};
Expand Down Expand Up @@ -537,7 +539,7 @@ app.controller('logtrail', function ($scope, kbnUrl, $route, $routeParams,
} else {
var message = resp.data.resp.msg ? resp.data.resp.msg : JSON.stringify(resp.data.resp);
console.error('Error while fetching hosts : ' + message);
notify.error('Cannot fetch hosts : ' + message);
toastNotifications.addDanger('Cannot fetch hosts : ' + message);
reject(false);
}
});
Expand Down

0 comments on commit 1f3a419

Please sign in to comment.