Skip to content

Commit

Permalink
Use /var/log/pods as output
Browse files Browse the repository at this point in the history
  • Loading branch information
tsigouris007 committed Mar 6, 2024
1 parent 649b9b2 commit ca4c872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ RUN apt-get update && apt-get install -y gettext-base curl
COPY deb/crowdstrike-cs-falconhoseclient_2.18.0_amd64.deb "${WORKDIR}/crowdstrike.deb"
RUN dpkg -i "${WORKDIR}/crowdstrike.deb"

RUN mkdir -p /var/log/pods/falconhoseclient

# Prepare a simple user instead of root
RUN groupadd -g 1000 user && useradd -r -u 1000 -g user user
RUN chown -R user:user /var/log/crowdstrike/falconhoseclient
RUN chmod -R 755 /var/log/crowdstrike/falconhoseclient
RUN chown -R user:user /opt/crowdstrike/etc
RUN chown -R user:user /var/log/pods/falconhoseclient

WORKDIR "${WORKDIR}"

Expand Down
3 changes: 2 additions & 1 deletion cfg/cs.falconhoseclient.cfg.template
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ output_format = json
# Will be true regardless if Syslog is not enabled
# If path does not exist or user has no permission, log file will be used
output_to_file = true
output_path = /dev/stdout
#output_path = /dev/stdout
output_path = /var/log/pods/falconhoseclient/events.log

# Offset file full filepath and filename
offset_path = /var/log/crowdstrike/falconhoseclient/stream_offsets
Expand Down

0 comments on commit ca4c872

Please sign in to comment.