Skip to content

Commit dcfa4b4

Browse files
feat(output): remove relative-time
1 parent aa7dc2e commit dcfa4b4

File tree

22 files changed

+17
-115
lines changed

22 files changed

+17
-115
lines changed

builder/entrypoint.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ run_tracee() {
3535
--capabilities drop=$CAPABILITIES_DROP \
3636
--output=json \
3737
--output=option:parse-arguments \
38-
--output=option:relative-time \
3938
--events signatures,container_create,container_remove
4039
fi
4140

deploy/helm/tracee/templates/tracee-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ data:
3636
parse-arguments: {{ .Values.config.output.options.parseArguments }}
3737
stack-addresses: {{ .Values.config.output.options.stackAddresses }}
3838
exec-env: {{ .Values.config.output.options.execEnv }}
39-
relative-time: {{ .Values.config.output.options.relativeTime }}
4039
exec-hash: {{ .Values.config.output.options.execHash }}
4140
sort-events: {{ .Values.config.output.options.sortEvents }}
4241
{{- with .Values.config.output.webhook }}

deploy/helm/tracee/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ config:
101101
parseArguments: true
102102
stackAddresses: false
103103
execEnv: false
104-
relativeTime: true
105104
execHash: dev-inode
106105
sortEvents: false
107106
# uncomment config.output.webhook to enable a single webhook

deploy/kubernetes/tracee/tracee.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ data:
5555
parse-arguments: true
5656
stack-addresses: false
5757
exec-env: false
58-
relative-time: true
5958
exec-hash: dev-inode
6059
sort-events: false
6160
---

docs/docs/flags/output.1.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tracee **\-\-output** - Control how and where output is printed
1111

1212
## SYNOPSIS
1313

14-
tracee **\-\-output** <format[:file,...]\> | gotemplate=template[:file,...] | forward:url | webhook:url | option:{stack-addresses,exec-env,relative-time,exec-hash[={inode,dev-inode,digest-inode}],parse-arguments,parse-arguments-fds,sort-events} ...
14+
tracee **\-\-output** <format[:file,...]\> | gotemplate=template[:file,...] | forward:url | webhook:url | option:{stack-addresses,exec-env,exec-hash[={inode,dev-inode,digest-inode}],parse-arguments,parse-arguments-fds,sort-events} ...
1515

1616

1717
## DESCRIPTION
@@ -40,11 +40,10 @@ Webhook options:
4040

4141
Other options:
4242

43-
- **option:{stack-addresses,exec-env,relative-time,exec-hash,parse-arguments,sort-events}**: Augment output according to the given options. The default is none. Multiple options can be specified, separated by commas.
43+
- **option:{stack-addresses,exec-env,exec-hash,parse-arguments,sort-events}**: Augment output according to the given options. The default is none. Multiple options can be specified, separated by commas.
4444

4545
- **stack-addresses**: Include stack memory addresses for each event.
4646
- **exec-env**: When tracing execve/execveat, show the environment variables that were used for execution.
47-
- **relative-time**: Use relative timestamp instead of wall timestamp for events.
4847
- **exec-hash**: When tracing some file related events, show the file hash (sha256).
4948
- Affected events: *sched_process_exec*, *shared_object_loaded*
5049
- **inode** option recalculates the file hash if the inode's creation time (ctime) differs, which can occur in different namespaces even for identical inode. This option is performant, but not recommended and should only be used if container enrichment can't be enabled for digest-inode, and if performance is preferred over correctness.

docs/docs/install/config/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ output:
132132
none: false
133133
stack-addresses: true
134134
exec-env: false
135-
relative-time: true
136135
exec-hash: dev-inode
137136
parse-arguments: true
138137
sort-events: false

docs/docs/outputs/output-options.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,7 @@ Available options:
5151
exec-hash: dev-inode
5252
```
5353
54-
5. **relative-time**
55-
56-
The `relative-time` output option enables relative timestamp instead of wall timestamp for events.
57-
58-
```
59-
output:
60-
options:
61-
relative-time: true
62-
```
63-
64-
6. **sort-events**
54+
5. **sort-events**
6555
6656
This makes it possible to sort the events as they happened. Especially in systems where Tracee tracks lots of events, it can happen that they are received unordered. More information is provided in the [deep-dive](../deep-dive/ordering-events.md) section of the documentation.
6757

docs/docs/policies/usage/cli.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ output:
9494
none: false
9595
stack-addresses: false
9696
exec-env: true
97-
relative-time: true
9897
exec-hash: dev-inode
9998
parse-arguments: true
10099
parse-arguments-fds: true

examples/config/global_config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ output:
124124
# none: false
125125
# stack-addresses: true
126126
# exec-env: false
127-
# relative-time: true
128127
# exec-hash: dev-inode
129128
# parse-arguments: true
130129
# sort-events: false

pkg/cmd/cobra/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,6 @@ func (c *OutputConfig) flags() []string {
407407
if c.Options.ExecEnv {
408408
flags = append(flags, "option:exec-env")
409409
}
410-
if c.Options.RelativeTime {
411-
flags = append(flags, "option:relative-time")
412-
}
413410
if c.Options.ExecHash != "" {
414411
flags = append(flags, fmt.Sprintf("option:exec-hash=%s", c.Options.ExecHash))
415412
}
@@ -490,7 +487,6 @@ type OutputOptsConfig struct {
490487
None bool `mapstructure:"none"`
491488
StackAddresses bool `mapstructure:"stack-addresses"`
492489
ExecEnv bool `mapstructure:"exec-env"`
493-
RelativeTime bool `mapstructure:"relative-time"`
494490
ExecHash string `mapstructure:"exec-hash"`
495491
ParseArguments bool `mapstructure:"parse-arguments"`
496492
ParseArgumentsFDs bool `mapstructure:"parse-arguments-fds"`

0 commit comments

Comments
 (0)