|
| 1 | +--- |
| 2 | +title: TRACEE-STORES |
| 3 | +section: 1 |
| 4 | +header: Tracee Stores Flag Manual |
| 5 | +date: 2025/11 |
| 6 | +... |
| 7 | + |
| 8 | +## NAME |
| 9 | + |
| 10 | +tracee **\-\-stores** - Configure data stores for DNS cache and process tree |
| 11 | + |
| 12 | +## SYNOPSIS |
| 13 | + |
| 14 | +tracee **\-\-stores** [dns.enabled|dns.max-entries=*size*|process.enabled|process.max-processes=*size*|process.max-threads=*size*|process.source=*source*|process.use-procfs] [**\-\-stores** ...] |
| 15 | + |
| 16 | +## DESCRIPTION |
| 17 | + |
| 18 | +The **\-\-stores** flag allows you to configure data stores for DNS cache and process tree functionality. |
| 19 | + |
| 20 | +### DNS Store Options |
| 21 | + |
| 22 | +- **dns.enabled**: Enable the DNS cache store. When enabled, Tracee will cache DNS query information for enrichment of network events. |
| 23 | + |
| 24 | +- **dns.max-entries**=*size*: Set the maximum number of DNS query trees to cache. Default is 5000. Further queries may be cached regardless once the limit is reached. |
| 25 | + |
| 26 | +### Process Store Options |
| 27 | + |
| 28 | +- **process.enabled**: Enable the process tree store. When enabled, Tracee will maintain a tree of processes and threads for enrichment of events. |
| 29 | + |
| 30 | +- **process.max-processes**=*size*: Set the maximum number of processes to cache in the process tree. Default is 10928. This is an LRU cache that will evict least recently accessed entries when full. |
| 31 | + |
| 32 | +- **process.max-threads**=*size*: Set the maximum number of threads to cache in the process tree. Default is 21856. This is an LRU cache that will evict least recently accessed entries when full. |
| 33 | + |
| 34 | +- **process.source**=*source*: Set the source for process tree enrichment. Valid values are: |
| 35 | + - **none**: Process tree source is disabled (default). |
| 36 | + - **events**: Process tree is built from events. |
| 37 | + - **signals**: Process tree is built from signals. |
| 38 | + - **both**: Process tree is built from both events and signals. |
| 39 | + |
| 40 | +- **process.use-procfs**: Enable procfs initialization and querying. When enabled, Tracee will: |
| 41 | + - Scan procfs during initialization to fill all existing processes and threads. |
| 42 | + - Query specific processes at runtime in case of missing information caused by missing events. |
| 43 | + |
| 44 | + Note: The procfs query might increase the feature toll on CPU and memory. The runtime query might have a snowball effect on lost events, as it will reduce the system resources in the processes of filling missing information. |
| 45 | + |
| 46 | +## EXAMPLES |
| 47 | + |
| 48 | +1. Enable DNS cache: |
| 49 | + ```console |
| 50 | + --stores dns.enabled |
| 51 | + ``` |
| 52 | + |
| 53 | +2. Enable DNS cache with custom size: |
| 54 | + ```console |
| 55 | + --stores dns.enabled --stores dns.max-entries=10000 |
| 56 | + ``` |
| 57 | + |
| 58 | +3. Enable process tree: |
| 59 | + ```console |
| 60 | + --stores process.enabled |
| 61 | + ``` |
| 62 | + |
| 63 | +4. Enable process tree with custom cache sizes: |
| 64 | + ```console |
| 65 | + --stores process.enabled --stores process.max-processes=8192 --stores process.max-threads=16384 |
| 66 | + ``` |
| 67 | + |
| 68 | +5. Enable process tree with events source: |
| 69 | + ```console |
| 70 | + --stores process.enabled --stores process.source=events |
| 71 | + ``` |
| 72 | + |
| 73 | +6. Enable process tree with both events and signals sources: |
| 74 | + ```console |
| 75 | + --stores process.enabled --stores process.source=both |
| 76 | + ``` |
| 77 | + |
| 78 | +7. Enable process tree with procfs support: |
| 79 | + ```console |
| 80 | + --stores process.enabled --stores process.use-procfs |
| 81 | + ``` |
| 82 | + |
| 83 | +8. Combine DNS and process stores: |
| 84 | + ```console |
| 85 | + --stores dns.enabled --stores dns.max-entries=5000 --stores process.enabled --stores process.source=both --stores process.max-processes=8192 |
| 86 | + ``` |
| 87 | + |
| 88 | +9. Complete configuration example: |
| 89 | + ```console |
| 90 | + --stores dns.enabled --stores dns.max-entries=5000 --stores process.enabled --stores process.max-processes=8192 --stores process.max-threads=16384 --stores process.source=both --stores process.use-procfs |
| 91 | + ``` |
| 92 | + |
| 93 | +Please refer to the [DNS data source documentation](../advanced/data-sources/builtin/dns.md) and [Process Tree data source documentation](../advanced/data-sources/builtin/process-tree.md) for more information. |
| 94 | + |
0 commit comments