-
Notifications
You must be signed in to change notification settings - Fork 0
/
goaccess.json
56 lines (56 loc) · 2.24 KB
/
goaccess.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"jpsType": "update",
"jpsVersion": "0.8",
"application": {
"id": "goaccess-jps",
"name": "Goaccess log parser",
"version": "1",
"homepage": "https://goaccess.io/",
"logo": "https://raw.githubusercontent.com/layershift/goaccess-jelastic/master/logfile.jpg",
"targetNodes": {
"nodeType": [
"*"
]
},
"description": {
"en": "GoAccess was designed to be a fast, terminal-based log analyzer. Its core idea is to quickly analyze and view web server statistics in real time without needing to use your browser (great if you want to do a quick analysis of your access log via SSH, or if you simply love working in the terminal)."
},
"onInstall": {
"call": [
"installGoaccess"
]
},
"onUninstall": {
"call": "removeGoaccess"
},
"procedures": [{
"id": "installGoaccess",
"onCall": [{
"execCmd": [{
"nodeGroup": "${targetNodes.nodeGroup}",
"user": "root",
"commands": [
"tty -s && mesg n 2>&1",
"yum clean all 2>/dev/null 1>/dev/null",
"yum -y install epel-release 2>/dev/null 1>/dev/null",
"yum -y install goaccess 2>/dev/null 1>/dev/null"
]
}]
}]
}, {
"id": "removeGoaccess",
"onCall": [{
"executeShellCommands": [{
"nodeGroup": "${targetNodes.nodeGroup}",
"user": "root",
"commands": [
"yum -y erase goaccess 2>/dev/null 1>/dev/null"
]
}]
}]
}],
"success": {
"text": "Goaccess has been installed successfully.</br></br>Start parsing logs by accessing your node via <a href='https://kb.layershift.com/jelastic-ssh-access#connect' target='_blank'>SSH Gateway</a>.</br>To run goaccess simply type in:</br> <pre>goaccess -f /path/to/logfile</pre>.</br></br>Features list: https://goaccess.io/features"
}
}
}