c8y(1)
π c8y(1) β the audit records list, explained by your favorite terminal bestie
okay so before we even start: this page is from the c8y manual, section 1, and it's literally just about one command β listing audit records. that's it. that's the vibe. let's go π«Ά
β¨ NAME β¨
c8y-auditrecords-list β get the audit record collection, bestie. that's the whole name, no notes π
π¦ SYNOPSIS π¦
c8y auditrecords list [flags]
that's it. that's the whole summoning ritual. c8y, then auditrecords, then list, then whatever flags your heart desires β¨
πΈ DESCRIPTION πΈ
okay so audit records are like the receipts of your Cumulocity world π they hold all the info about modifications that happened to other Cumulocity entities. it's giving "screen time report but for your infrastructure."
for example β and this is the cute part β the audit records contain each operation state transition, so you can literally use them to check when an operation transitioned from PENDING -> EXECUTING -> SUCCESSFUL. a whole little glow-up timeline, captured forever. no cap, that's genuinely useful π₯
π OPTIONS π
these are the flags that only belong to this command. the family heirlooms come later, don't worry.
--application=""β filter by Application π--dateFrom=""β the start date, or start date and time, of when the audit record occurred. i.e. where your story begins β¨--dateTo=""β the end date, or end date and time, of when the audit record occurred. the closing credits π-h,--help[=false]β help forlist. your little safety net π«Ά--revert[=false]β returns the newest instead of the oldest audit records. and listen, this one is picky: it must be used with thedateFromanddateToparameters. no dates, no revert, periodt π--source=""β a Source Id, or an object containing an.idproperty, of the element that should be detected. i.e.AlarmID, or Operation ID. β οΈ Note: only one source can be provided (and yes, it accepts pipeline) π¦--type=""β Type π--user=""β Username π
π OPTIONS INHERITED FROM PARENT COMMANDS π
the whole extended family shows up to every c8y party. every single one, listed for you, because we don't gatekeep here π
--abortOnErrors=10β abort the batch when it reaches the specified number of errors. ten strikes and we're out π--allowEmptyPipe[=false]β don't fail when the piped input (stdin) is empty. be forgiving, bestie π--cache[=false]β enable cached responses β‘--cacheBodyPaths=[]β the cache should limit hashing of selected paths in the json body. empty indicates all values, aka hash everything π--cacheTTL="60s"β cache time-to-live (TTL) as a duration, i.e.60s,2mβ³-c,--compact[=false]β compact instead of pretty-printed output when using json output. pretty print is the default if the output is the terminal πΈ--confirm[=false]β prompt for confirmation π--confirmText=""β custom confirmation text, for when you want your prompt to have personality π--currentPage=0β the current page which should be returned π--customQueryParam=[]β add custom URL query parameters. i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'π§--debug[=false]β set very verbose log messages. the loudest mode π£οΈ--delay="0ms"β delay after each request, i.e.5ms,1.2sπ΄--delayBefore="0ms"β delay before each request, i.e.5ms,1.2sβ±οΈ--dry[=false]β dry run. don't send any data to the server. all vibes, zero consequences β¨--dryFormat="markdown"β dry run output format. i.e.json,dump,markdownorcurlπ--examples[=false]β show examples for the current command. yes queen, show me how it's done π--filter=[]β apply a client side filter to the response before returning it to the user π§--flatten[=false]β flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested? not anymore πͺ-f,--force[=false]β do not prompt for confirmation. ignored when using--confirm. bold of you π₯-H,--header=[]β custom headers. i.e.--header "Accept: value, AnotherHeader: myvalue"βοΈ--includeAll[=false]β include all results by iterating through each page. we're getting everything π-k,--insecure[=false]β allow insecure server connections when using SSL. β οΈ caution vibes only, bestie π-l,--logMessage=""β add a custom message to the activity log π--maxJobs=0β maximum number of jobs.0= unlimited (use with caution!) π₯--noAccept[=false]β ignore the Accept header, which will remove the Accept header from requests; howeverPUTandPOSTrequests will only see the effect π«--noCache[=false]β force disabling of cached responses (overwrites the cache setting) π§-M,--noColor[=false]β don't use colors when displaying log entries on the console. monochrome moment π€--noLog[=false]β disables the activity log for the current command π--noProgress[=false]β disable progress bars π--noProxy[=false]β ignore the proxy settings πͺ-n,--nullInput[=false]β don't read the input (stdin). useful if using in shellfor/whileloops π-o,--output="table"β output format, i.e.table,json,csv,csvheaderπ--outputFile=""β save JSON output to file (after select/view) πΎ--outputFileRaw=""β save raw response to file (before select/view) ποΈ--outputTemplate=""β jsonnet template to apply to the output π¨-p,--pageSize=5β maximum results per page. five is the default, live a little π¬--progress[=false]β show progress bar. this will also disable any other verbose output π--proxy=""β proxy setting, i.e.http://10.0.0.1:8080π-r,--raw[=false]β show raw response. this mode will forceoutput=jsonandview=offπ₯©--retries=3β max number of attempts when a failed http call is encountered. three tries, then we accept fate π--select=[]β comma separated list of properties to return. wildcards and globstar accepted, i.e.--select 'id,name,type,**.serialNumber'π―--session=""β session configuration π--sessionMode=""β override the default session mode for a single command, which would normally be disabled ποΈ-P,--sessionPassword=""β override session password π€«-U,--sessionUsername=""β override session username. i.e.peterort1234/peter(with tenant) πββοΈ--silentExit[=false]β silent status codes do not affect the exit code π€--silentStatusCodes=""β status codes which will not print out an error message π€«--timeout="600s"β request timeout duration, i.e.60s,2mβ--totalPages=0β total number of pages to get π-v,--verbose[=false]β verbose logging π£οΈ--view="auto"β use views when displaying data on the terminal. disable using--view offπ--withError[=false]β errors will be printed on stdout instead of stderr π¨--withTotalElements[=false]β request Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in 10.13) π’-t,--withTotalPages[=false]β request Cumulocity to include the total pages in the response statistics under.statistics.totalPagesπ--workers=1β number of workers π·ββοΈ
π EXAMPLE π
here's the moment you've all been waiting for β an actual example, copied exactly, no edits, because we respect the source material:
$ c8y auditrecords list --pageSize 100
Get a list of audit records
get a list of audit records. that's what it does. iconic behavior honestly π
π SEE ALSO π
c8y-auditrecords(1)β the parent command, go say hi π«Ά
and that's the whole page, bestie!! β¨π this lil masterpiece is from the c8y(1) manual, dated Jan 1980 β yes, before most of us were born, and it's still slaying π
ππ¦
π¦ where this page comes from
- nixpkgs unstable: go-c8y-cli 2.56.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms