Update 0.2.1.md

This commit is contained in:
Stefan Pejcic 2024-06-21 16:31:26 +02:00 committed by GitHub
parent 378944fd1c
commit 95447add88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ Not yet released.
- [Spanish Translation 🇪🇸](https://community.openpanel.co/d/59-hablas-espanol-spanish-translation-for-openpanel) - [Spanish Translation 🇪🇸](https://community.openpanel.co/d/59-hablas-espanol-spanish-translation-for-openpanel)
- [OpenPanel Enterprise Edition](/product/openpanel-premium-control-panel/) - [OpenPanel Enterprise Edition](/product/openpanel-premium-control-panel/)
- OpenAdmin > Templates - OpenAdmin > Templates
- [OpenAdmin > Services > View Log Files](#log-viewer)
- [**BETA** support for CSF (ConfigServer Firewall) as drop-in replacement for UFW](#csf). - [**BETA** support for CSF (ConfigServer Firewall) as drop-in replacement for UFW](#csf).
- [Internal OpenPanel blacklist](#openpanel-blacklist) - [Internal OpenPanel blacklist](#openpanel-blacklist)
- [**BETA** FOSSBilling Module](https://github.com/stefanpejcic/FOSSBilling-OpenPanel) - [**BETA** FOSSBilling Module](https://github.com/stefanpejcic/FOSSBilling-OpenPanel)
@ -46,6 +47,47 @@ Not yet released.
- Changed paths for [OpenPanel and OpenAdmin log files](https://dev.openpanel.co/logs.html#Logs) - Changed paths for [OpenPanel and OpenAdmin log files](https://dev.openpanel.co/logs.html#Logs)
### Log Viewer
The *OpenAdmin > Services > View Log Files* feature enables users to access and monitor logs for both OpenPanel and system services. This functionality supports modularity by allowing customization of the log files displayed in the viewer.
![log viewer page](https://i.postimg.cc/zGmWT8L0/errorlof.png)
To define custom log files for the viewer:
1. Edit Configuration File:
Modify the file located at `/etc/openpanel/openadmin/config/log_paths.json`. This file should contain entries in JSON format where each key-value pair represents a log file name and its corresponding path.
Here is an example of what the log_paths.json file might look like:
Simply edit the file `/etc/openpanel/openadmin/config/log_paths.json` and in it set the desired log files and names:
```json
{
"Nginx Access Log": "/var/log/nginx/access.log",
"Nginx Error Log": "/var/log/nginx/access.log",
"OpenAdmin Access Log": "/var/log/openpanel/admin/access.log",
"OpenAdmin Error Log": "/var/log/openpanel/admin/error.log",
"OpenAdmin API Log": "/var/log/openpanel/admin/api.log",
"Custom Service Log": "/path/to/custom/service.log"
"Syslog": "/var/log/syslog"
}
```
Replace `/path/to/custom/service.log` with actual path to your custom log files.
2. Verify JSON Validity:
Ensure that the log_paths.json file is formatted correctly as JSON. Any syntax errors in the JSON file will prevent the custom log files from appearing in the viewer.
You can check the validity of your JSON file by using a command-line JSON processor like jq:
```bash
cat /etc/openpanel/openadmin/config/log_paths.json | jq
```
If the JSON is valid, `jq` will output the parsed JSON structure. If there are any errors, `jq` will indicate where the problem lies.
3. Verify Custom Logs in Viewer:
After saving the changes, navigate to *OpenAdmin > Services > View Log Files* in the interface. The custom log files you specified in log_paths.json should now appear alongside the default logs.
By following these steps, you can effectively customize the log files displayed in the OpenAdmin log viewer according to your specific requirements. This flexibility allows you to monitor logs from both standard services and any custom applications or services you integrate with OpenPanel.
### opencli license ### opencli license
`opencli license` is a new command dedicated to Enterprise users. It allows you to set a license key, verify it, display information and delete the key to downgrade to Community edition. `opencli license` is a new command dedicated to Enterprise users. It allows you to set a license key, verify it, display information and delete the key to downgrade to Community edition.