Skip to content

Commit 4c58af2

Browse files
Merge pull request #177 from xavier-hernandez/develop
v1.1.26
2 parents a4ee9bb + c515215 commit 4c58af2

File tree

9 files changed

+25
-9
lines changed

9 files changed

+25
-9
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk add --no-cache \
99

1010
# download goaccess
1111
WORKDIR /goaccess-temp
12-
COPY /assests/goaccess/goaccess-1.8.1.tar.gz goaccess.tar.gz
12+
COPY /assests/goaccess/goaccess-1.9.1.tar.gz goaccess.tar.gz
1313

1414
# set up goacess-debug
1515
WORKDIR /goaccess-debug
@@ -23,7 +23,7 @@ RUN make install
2323
WORKDIR /goaccess
2424
RUN cp /goaccess-temp/goaccess.tar.gz .
2525
RUN tar --strip-components=1 -xzvf goaccess.tar.gz
26-
RUN sed -i "s/GWSocket<\/a>/GWSocket<\/a> ( <a href='https:\/\/tiny.one\/xgoan'>GOAN<\/a> <span>v1.1.25<\/span> )/" /goaccess/resources/tpls.html
26+
RUN sed -i "s/GWSocket<\/a>/GWSocket<\/a> ( <a href='https:\/\/tiny.one\/xgoan'>GOAN<\/a> <span>v1.1.26<\/span> )/" /goaccess/resources/tpls.html
2727
RUN sed -i "s/bottom: 190px/bottom: 260px/" /goaccess/resources/css/app.css
2828
RUN ./configure --enable-utf8 --enable-geoip=mmdb --with-getline
2929
RUN make

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Still in development... You might need to wait a bit if you have a large amount
1414
![Alt text](https://i.ibb.co/fNj9Dcy/goaccess1.jpg "GoAccess Dashboard")
1515

1616
**Dependencies:**
17-
- GoAccess version: 1.8.1
18-
- GeoLite2-City.mmdb (2024-01-20)
19-
- GeoLite2-Country.mmdb (2024-01-20)
20-
- GeoLite2-ASN.mmdb (2024-01-20)
17+
- GoAccess version: 1.9.1
18+
- GeoLite2-City.mmdb (2024-02-10)
19+
- GeoLite2-Country.mmdb (2024-02-10)
20+
- GeoLite2-ASN.mmdb (2024-02-10)
2121

2222
---
2323

@@ -61,6 +61,7 @@ services:
6161
- CUSTOM_BROWSERS=Kuma:Uptime,TestBrowser:Crawler #optional - comma delimited, more information below
6262
- HTML_REFRESH=5 #optional - Refresh the HTML report every X seconds. https://goaccess.io/man
6363
- KEEP_LAST=30 #optional - Keep the last specified number of days in storage. https://goaccess.io/man
64+
- PROCESSING_THREADS=1 #optional - This parameter sets the number of concurrent processing threads in the program's execution, affecting log data analysis, typically adjusted based on CPU cores. Default is 1. https://goaccess.io/man
6465
volumes:
6566
- /path/to/host/nginx/logs:/opt/log
6667
- /path/to/host/custom:/opt/custom #optional, required if using log_type = CUSTOM
@@ -90,6 +91,7 @@ services:
9091
- CUSTOM_BROWSERS=Kuma:Uptime,TestBrowser:Crawler #optional - comma delimited, more information below
9192
- HTML_REFRESH=5 #optional - Refresh the HTML report every X seconds. https://goaccess.io/man
9293
- KEEP_LAST=30 #optional - Keep the last specified number of days in storage. https://goaccess.io/man
94+
- PROCESSING_THREADS=1 #optional - This parameter sets the number of concurrent processing threads in the program's execution, affecting log data analysis, typically adjusted based on CPU cores. Default is 1. https://goaccess.io/man
9395
volumes:
9496
- /path/to/host/nginx/logs:/opt/log
9597
- /path/to/host/custom:/opt/custom #optional, required if using log_type = CUSTOM
@@ -111,6 +113,8 @@ services:
111113
| `-e CUSTOM_BROWSERS=` | - (Optional) Consumes the list of provided custom browsers. This is a comma separated list containing the custom browser(s) in the format `Browser:Browser_category`.<br/>- If your custom browser is already defined in the default `browsers.list` file, it will not be added. However, the `Browser_category` can be reused.<br/><br/> CUSTOM_BROWSERS list example: `Kuma:Crawlers,TestBrowser:Crawlers,Kuma:Uptime,Discordbot:Crawlers`<br/><br/>For the example above, only `Kuma:Crawlers` and `TestBrowser:Crawlers` will be appended to the `browsers.list` file. <br/><br/>`Kuma:Uptime` is ignored as the browser `Kuma` has already been defined in `Kuma:Crawlers`. `Discordbot:Crawlers` is ignored as the browser `Discordbot` is already defined in the [default browsers.list file](https://github.com/allinurl/goaccess/blob/master/config/browsers.list)<br/><br/>Note for users using CUSTOM LOG_TYPE:<br/><br/>If your `goaccess.conf` file references a browsers.list file other than the one located in the `/goaccess-config/ directory`, the CUSTOM_BROWSERS variable will be ignored. |
112114
| `-e HTML_REFRESH=` | (Optional) Refresh the HTML report every X seconds. https://goaccess.io/man |
113115
| `-e KEEP_LAST=` | (Optional) Keep the last specified number of days in storage. https://goaccess.io/man|
116+
| `-e PROCESSING_THREADS=` | (Optional) This parameter sets the number of concurrent processing threads in the program's execution, affecting log data analysis, typically adjusted based on CPU cores. Default is 1.
117+
114118

115119
# **Additional environment information**
116120
` -e LOG_TYPE=`
-723 KB
Binary file not shown.
727 KB
Binary file not shown.

assests/maxmind/GeoLite2-ASN.mmdb

27.9 KB
Binary file not shown.

assests/maxmind/GeoLite2-City.mmdb

-2.29 MB
Binary file not shown.
-35.2 KB
Binary file not shown.

resources/scripts/funcs/environment.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,27 @@ function runGoAccess(){
8383
if is_integer "$HTML_REFRESH"; then
8484
goacess_options="$goacess_options --html-refresh=${HTML_REFRESH}"
8585
else
86-
echo "Error: HTML_REFRESH does not contain an integer, ignoring".
86+
echo -e "Error: HTML_REFRESH does not contain an integer, ignoring.\n"
8787
fi
8888
fi
8989

9090
if [ -n "$KEEP_LAST" ]; then
9191
if is_integer "$KEEP_LAST"; then
9292
goacess_options="$goacess_options --keep-last=${KEEP_LAST}"
9393
else
94-
echo "Error: KEEP_LAST does not contain an integer, ignoring".
94+
echo -e "\nError: KEEP_LAST does not contain an integer, ignoring.\n"
95+
fi
96+
fi
97+
98+
if [ -n "$PROCESSING_THREADS" ]; then
99+
if is_integer "$PROCESSING_THREADS"; then
100+
if [ "$PROCESSING_THREADS" -ge 1 ] && [ "$PROCESSING_THREADS" -le 6 ]; then
101+
goacess_options="$goacess_options --jobs=${PROCESSING_THREADS}"
102+
else
103+
echo -e "\nError: PROCESSING_THREADS must be between 1 and 6, ignoring.\n"
104+
fi
105+
else
106+
echo -e "\nError: PROCESSING_THREADS does not contain an integer, ignoring.\n"
95107
fi
96108
fi
97109

resources/scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source $(dirname "$0")/logs/custom.sh
99
source $(dirname "$0")/logs/ncsa_combined.sh
1010
source $(dirname "$0")/logs/nginx_access.sh
1111

12-
goan_version="GOAN v1.1.25"
12+
goan_version="GOAN v1.1.26"
1313
goan_log_path="/opt/log"
1414

1515
goaccess_ping_interval=15

0 commit comments

Comments
 (0)