Replies: 2 comments 4 replies
-
Hello @goneall
Looks like you scan small directory and Trivy manages to parse all files in one second. I scanned my work dir and got a few seconds: ➜ tmp trivy -d fs .
2025-02-10T12:05:00+06:00 DEBUG Default config file "file_path=trivy.yaml" not found, using built in values
2025-02-10T12:05:00+06:00 DEBUG Cache dir dir="/Users/dmitriy/Library/Caches/trivy"
...
2025-02-10T12:05:00+06:00 DEBUG [pom] Start parent artifact="org.apache.httpcomponents:httpcomponents-client:4.5.13"
2025-02-10T12:05:01+06:00 DEBUG [pom] Start parent artifact="org.apache.httpcomponents:httpcomponents-parent:11"
2025-02-10T12:05:01+06:00 DEBUG [pom] Start parent artifact="org.apache:apache:21"
...
2025-02-10T12:05:01+06:00 DEBUG [pom] Adding repository id="sonatype-nexus-snapshots" url="https://oss.sonatype.org/content/repositories/snapshots"
2025-02-10T12:05:01+06:00 DEBUG [pom] Start parent artifact="com.fasterxml.jackson:jackson-base:2.12.1"
2025-02-10T12:05:02+06:00 DEBUG [pom] Start parent artifact="com.fasterxml.jackson:jackson-parent:2.12"
2025-02-10T12:05:02+06:00 DEBUG [pom] Start parent artifact="com.fasterxml:oss-parent:41"
2025-02-10T12:05:02+06:00 DEBUG [pom] Exit parent artifact="com.fasterxml:oss-parent:41"
...
2025-02-10T12:05:02+06:00 DEBUG [pom] Exit parent artifact="com.google.code.gson:gson-parent:2.10.1"
2025-02-10T12:05:02+06:00 DEBUG [pom] Start parent artifact="com.fasterxml.jackson:jackson-bom:2.16.0"
2025-02-10T12:05:02+06:00 DEBUG [pom] Start parent artifact="com.google.errorprone:error_prone_parent:2.11.0"
2025-02-10T12:05:03+06:00 DEBUG [pom] Start parent artifact="com.fasterxml.jackson:jackson-bom:2.15.1"
2025-02-10T12:05:03+06:00 DEBUG [pom] Failed to fetch url="https://repo.maven.apache.org/maven2/sb_http-client/sb_http-client/4.5.14/sb_http-client-4.5.14.pom" statusCode=404
...
2025-02-10T12:05:07+06:00 DEBUG [pom] Start parent artifact="com.fasterxml.jackson.module:jackson-modules-java8:2.15.1"
2025-02-10T12:05:07+06:00 DEBUG [pom] Adding repository id="sonatype-nexus-snapshots" url="https://oss.sonatype.org/content/repositories/snapshots"
...
|
Beta Was this translation helpful? Give feedback.
4 replies
-
My misunderstanding on the logging mechanics - closing this as no longer relevant. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When running Trivy for a file system, the log file shows the same timestamp for every log record making it difficult to debug performance problems.
Desired Behavior
Log files where every record records the timestamp at the time the log record was created.
Actual Behavior
Same timestamp for every record
Reproduction Steps
1. Run `trivy fs --debug --scanners license --format spdx-json` 2. View the logfile results
Target
Filesystem
Scanner
License
Output Format
SPDX
Mode
Standalone
Debug Output
Note that the first and last records have the same timestamp.
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions