Skip to content

Commit

Permalink
go-pot:
Browse files Browse the repository at this point in the history
- remove conflicting field ("type")
- ranme duration => session_duration
  • Loading branch information
t3chn0m4g3 committed Dec 9, 2024
1 parent c710aa8 commit 663b509
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker/elk/logstash/dist/http_output.conf
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ filter {
}
mutate {
remove_field => ["ts"]
rename => {
"duration" => "session_duration"
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions docker/elk/logstash/dist/logstash.conf
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ filter {
}
mutate {
remove_field => ["ts"]
rename => {
"duration" => "session_duration"
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion docker/go-pot/dist/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ server:
# - device_brand: The type of device of the client (Inferred from the user agent)
# - phase: "start" or "end" depending on the phase of the request
# - duration: The duration of the request in milliseconds (Only available as a part of the end phase of a request)
fields_to_log: "timestamp,id,status,src_ip,method,path,qs,dest_port,type,host,user_agent,browser,browser_version,os,os_version,device,device_brand,phase,duration"
fields_to_log: "timestamp,id,status,src_ip,method,path,qs,dest_port,host,user_agent,browser,browser_version,os,os_version,device,device_brand,phase,duration"

# Configuration for logging related settings for go-pot
logging:
Expand Down

0 comments on commit 663b509

Please sign in to comment.