You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is the hunt that was ran to cause the agent to crash:
name: GPS.Linux.Applications.Docker.RunningProcesses
author: Keven Murphy
description: |
Get Dockers running process for each container thru commandline.
Date: 12/07/23
parameters:
name: CommandContainer
default: "docker container ls -a --no-trunc --format='{{json . }}' 2>/dev/null "
name: CommandDockerTop
default: "docker top "
name: TopOptions
default: " -ef "
name: ConvertPSOutput
default: ' '
sources:
precondition: |
SELECT OS From info() where OS = 'linux'
query: |//| awk NF=NF OFS='','' 2>/dev/null
LET currenttime = now()
LET containerdata <= SELECT parse_json(data=Stdout) as CDJSON FROM execve(argv=["/bin/bash", "-c", CommandContainer],sep='\n')
LET containertop <= SELECT
*
FROM foreach(
row={SELECT CDJSON.ID as ContID FROM containerdata},
query={
SELECT ,ContID FROM execve(argv=["/bin/bash", "-c", CommandDockerTop+" "+ContID+" "+TopOptions+" "+ConvertPSOutput],sep='\n') WHERE Stdout != ""
})
LET cpipe <= pipe(query={SELECT FROM containertop})
SELECT
*,
timestamp(epoch=currenttime) As ClientRunTime
//Working
FROM containertop
where ContID!=null
The text was updated successfully, but these errors were encountered:
Hello,
We are seeing 0.73.3 Linux agent crashes when parsing returned JSON data. The hunt that was used worked find in agent version 0.72.4 and returns data.
Below is the error message from the client when it crashes.
Below is the hunt that was ran to cause the agent to crash:
The text was updated successfully, but these errors were encountered: