Compare commits

..

3 Commits

Author SHA1 Message Date
Vadim Trochinsky f97f800919 refs #2424 #2426 #2430 move gitlib support from oggit repo
refs #2424 - move GitLib code to this repo
refs #2426 - move interfaceAdm scripts to this repo
refs #2430 - remove sys.path.insert()
2025-07-11 12:13:41 +02:00
Natalia Serrano 0f0d62c655 Merge pull request 'refs #2448 #2449 configure and run filebeat' (#84) from filebeat into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #84
2025-07-11 12:00:43 +02:00
Natalia Serrano f2f373b996 refs #2448 #2449 configure and run filebeat 2025-07-11 11:58:28 +02:00
3 changed files with 28 additions and 2 deletions

View File

@ -5,10 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.24.0] - 2025-07-07
## [0.25.0] - 2025-07-11
## Added
- Add ogGit functionality
## [0.24.0] - 2025-07-11
### Added
- Configure and run filebeat
## [0.23.2] - 2025-07-07
### Changed

View File

@ -5,7 +5,7 @@ set -a
source /opt/opengnsys/etc/preinit/loadenviron.sh
# Scripts de inicio.
for f in cleanesp fileslinks loadmodules metadevs mountrepo poweroff otherservices; do
for f in cleanesp fileslinks loadmodules metadevs mountrepo poweroff filebeat otherservices; do
source $OGETC/preinit/$f.sh
done
unset f

View File

@ -0,0 +1,18 @@
#!/bin/bash
F=/etc/filebeat/filebeat.yml
OGLOG_PORT=9200
if [ -f $F ]; then
PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 |sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/') ## taken from a sibling script
PASS=${PASS:-"og"}
chmod 0600 $F
sed -i -e "s/__OGLOG_IP__/$oglog/g" \
-e "s/__OGLOG_PORT__/$OGLOG_PORT/g" \
-e "s/__OPENSEARCH_PASSWORD__/$PASS/g" \
$F
unset PASS
mkdir -p /var/log/filebeat
/usr/bin/filebeat -c $F --path.home /usr/share/filebeat --path.config /etc/filebeat --path.data /var/lib/filebeat --path.logs /var/log/filebeat &
fi