MIT License

项目介绍

jackgraves/standalone-atlassian-log-scanner 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 MIT License 许可证,目前获得 12 个 Star、4 次 Fork。

仓库全名
jackgraves/standalone-atlassian-log-scanner
开源许可证
MIT License
Star 数
12
Fork 数
4
未关闭 Issue
1

README 摘要

Standalone Atlassian Log Scanner/Analyser Sick of the time it takes to scan your Atlassian log files using the Log Analyser? Enter SALSA! This is a standalone version of the Log Scanner (Hercules) that is built into Jira, Confluence, Bitbucket, Bamboo, Crowd and Fisheye/Crucible. The aim of this project is to increase the speed of scanning compared to executing through the interface of the Atlassian applications. It…

完整内容见 GitHub 原始 README 或本页 。

常见问题

standalone-atlassian-log-scanner 用什么语言开发?

主要使用 Java 编写,采用 MIT License 许可证,目前有 12 个 Star。

standalone-atlassian-log-scanner 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 standalone-atlassian-log-scanner 的源码?

可以直接克隆仓库:git clone https://github.com/jackgraves/standalone-atlassian-log-scanner.git,默认分支为 master;安装与运行步骤见仓库 README。

standalone-atlassian-log-scanner 最近还在维护吗?

仓库最近一次更新为 2018年5月29日,当前有 1 个未关闭 Issue;Star 数为 12,可作为社区活跃度的参考。

关于

This is a standalone version of the Log Scanner (Hercules) that is built into Jira, Confluence, Bitbucket, Bamboo, Crowd and Fisheye/Crucible. Aim is to increase speed of scanning dramatically.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
22
价值分
8
活跃状态
活跃

语言占比

Java

Release

  • 0.42018年5月17日
  • 0.22018年5月13日

贡献者

README

Standalone Atlassian Log Scanner/Analyser

Sick of the time it takes to scan your Atlassian log files using the Log Analyser? Enter SALSA!

Build Status Ask Me Anything ! MIT license Open Source Love svg2

This is a standalone version of the Log Scanner (Hercules) that is built into Jira, Confluence, Bitbucket, Bamboo, Crowd and Fisheye/Crucible.

The aim of this project is to increase the speed of scanning compared to executing through the interface of the Atlassian applications.

It also extends the provided tool with the following improvements:

  • Allows third-party developers to provide definition files that can be used in addition to the Atlassian-supplied definitions
  • Can be integrated with a support system to perform automated scanning on submission of log files
  • Run the analysis on a different box than the Jira/Confluence system that is experiencing a problem
  • Code can also be used for scanning any text files for Regular Expressions from XML.
  • Run in Sequence or in Parrallel and display verbose information

Performance

A 3MB Log File took the following duration:

  • Support Tools Log Analyser: 6 minutes 14 seconds
  • Standalone Log Scanner (sequential): 1 minute 48 seconds
  • Standalone Log Scanner (parrallel): 34 seconds

That’s an over 70% improvement when sequentially run and an over 90% improvement when run in parrallel

How it Works

The following steps are followed:

  1. (if it doesn’t already exist) Download the definition file from the Atlassian website, or a custom URL
  2. Parses the XML into JAXB Objects
  3. Generates Regular Expression List
  4. Reads the Log File
  5. Runs Regular Expressions on each Log Line (either sequentially or in parallel)
  6. Prints out the URL of all errors that have been found in the system (distinct, or all using verbose mode)

Compiling

Run the following command to build the project into a JAR file:

mvn package

Usage

Execute the following on your command line (CMD or Bash) and leave the -stream parameter out if you would like it to run sequentially (which is much less demanding). To see all problems, use the -verbose flag

java -jar log-scanner.jar -def=jira-core -log=atlassian-jira.log -stream

Custom Definitions

This tool supports custom definitions, by providing a URL as the definition argument:

-def=https://www.example.com/definition.xml

There is a sample definition file in the examples/ folder.

Download

You can download a pre-compiled binary from the releases page

License

FOSSA Status

Example

Built-in Tool

Support Tools Output

Standalone Tool

SALSA Output

Improvements

  • Use Parallel Streams API to speed up analysis
  • Implement flags and arguments
  • Show Datetime for each detected problem
  • Show line number against each detected problem
  • Implement multiple definitions per analysis (by combining XML)
  • Implement Jira Service Desk App for use with support tickets
  • Port to Node.js for use with NPM

评论

暂无评论