Skip to content

Copying sysdig sump files to remote storage #1613

Open

Description

@jaychan-q

Hello All, Is there a way to generate sysdig dump files based on the timestamp ? I am trying to copy the dump files to gcp storage and not want to overwrite the files. Currently i am doing this (which generates dumps every 15 min and keeps 5 files).

sysdig -G 900 -W 5 -qw /opt/sysdig_dumps/sysdig-$(date +'%Y%m%d-%H%M%S').scap
This generates files like below and first file gets overwritten after 5th dump file is generated.
sysdig-20200406-212213.scap0
sysdig-20200406-212213.scap1
sysdig-20200406-212213.scap2
sysdig-20200406-212213.scap3
sysdig-20200406-212213.scap4

How do we keep these dump files without getting overwritten and sent to remote storage?

Thanks

Activity

  1. kristopolous commented on Apr 29, 2020

    @kristopolous
    Contributor

    Logrotate can handle all of this, including the timestamp.

  2. github-actions commented on Feb 22, 2023

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions