Compare commits

...

4 commits

Author SHA1 Message Date
natitomattis
a5a5aabf69
Merge bec64f2306 into 6faf600d40 2025-07-04 12:27:01 +02:00
t3chn0m4g3
6faf600d40 Fix logstash logging issue, introduced with Sentrypeer 4.0.4
Similar to #1807
2025-07-03 10:48:18 +02:00
natitomattis
bec64f2306 typo 2025-04-10 07:59:15 -03:00
natitomattis
b08bd2bd1c small fix on upgrade.sh 2025-04-10 07:35:27 -03:00
3 changed files with 18 additions and 8 deletions

View file

@ -698,12 +698,15 @@ filter {
remove_field => ["event_timestamp"]
}
mutate {
rename => {
"source_ip" => "src_ip"
"destination_ip" => "dest_ip"
}
split => ["source_ip", ":"]
rename => { "destination_ip" => "dest_ip" }
add_field => { "dest_port" => "5060" }
}
mutate {
add_field => { "src_ip" => "%{[source_ip][0]}" }
add_field => { "src_port" => "%{[source_ip][1]}" }
remove_field => ["source_ip"]
}
}
# Tanner

View file

@ -698,12 +698,15 @@ filter {
remove_field => ["event_timestamp"]
}
mutate {
rename => {
"source_ip" => "src_ip"
"destination_ip" => "dest_ip"
}
split => ["source_ip", ":"]
rename => { "destination_ip" => "dest_ip" }
add_field => { "dest_port" => "5060" }
}
mutate {
add_field => { "src_ip" => "%{[source_ip][0]}" }
add_field => { "src_port" => "%{[source_ip][1]}" }
remove_field => ["source_ip"]
}
}
# Tanner

View file

@ -188,6 +188,10 @@ function fuRESTORE () {
fi
echo "### Restoring T-Pot config file .env"
tar xvf $myARCHIVE .env -C $HOME/tpotce >/dev/null 2>&1
# Backup file (.env) contains a record of the TPOT_VERSION that is used in docker-compose commmands.
# We should upgrade the version in this file after restoring the backup.
newVERSION=$(cat version)
sed -i 's/^TPOT_VERSION=.*/TPOT_VERSION=${newVERSION}/' $HOME/tpotce/.env
}
################