Skip to content

Commit 54678c7

Browse files
Jack GravesJack Graves
authored andcommitted
Added more information to the README
1 parent aa131be commit 54678c7

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
# Standalone Atlassian Log Scanner
1+
Sick of the time it takes to scan your Atlassian log files using the Log Analyser?
2+
Enter SALSA!
3+
# Standalone Atlassian Log Scanner/Analyser
24
This is a standalone version of the Log Scanner (Hercules) that is built into Jira, Confluence, Bitbucket, Bamboo, Crowd and Fisheye/Crucible.
35
The aim is to increase the speed of scanning dramatically compared to executing through the interface and allow automated scanning of log files in a support system.
46

7+
## Performance
8+
A 3MB Log File took the following duration:
9+
* Support Tools Log Analyser: 6 minutes 14 seconds
10+
* Standalong Log Scanner: 1 minute 48 seconds
11+
12+
*That's an over 70% improvement!*
13+
514
## How it Works
615
The following steps are followed:
716
1. (if it doesn't already exist) Download the definition file from the Atlassian website
@@ -20,6 +29,13 @@ Execute the following on your command line (CMD or Bash):
2029
`java -jar logscanner.jar "jira-core" "atlassian-jira.log"`
2130

2231
## Next Steps
23-
- [ ] Use the RE4J Library to perform RegEx Matching faster
2432
- [ ] Use a Worker Pool to perform RegEx Matching in parrallel
25-
- [ ] Write Jira plugin to automatically run scans on incoming support tickets (*.log) files
33+
- [ ] Write Jira plugin to automatically scan incoming support log files
34+
35+
## Example
36+
The built-in log analyser results:
37+
38+
![Support Tools Output](example/example_output_supporttools.png)
39+
The same errors, shown in the SALSA tool:
40+
41+
![SALSA Output](example/example_output_standalone.png)
84.2 KB
Loading
50 KB
Loading

src/main/java/co/uk/jackgraves/logscanner/Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ private static ArrayList<String> parseLog(List<String> logFile, Map<String, Patt
130130
int last = 0;
131131
int size = logFile.size();
132132
Matcher matcher;
133+
// TODO: Increase speed. Look at using parrallel worker threads.
133134
for (String s : logFile) {
134135
for(String p : regularExpressions.keySet()) {
135136
matcher = regularExpressions.get(p).matcher(s);
136-
if(matcher.find()) {
137+
if(matcher.find()) gi{
137138
if(!errors.contains(p))
138139
errors.add(p);
139140
}

0 commit comments

Comments
 (0)