Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--multiline option in csv-timeline command #972

Closed
YamatoSecurity opened this issue Mar 20, 2023 · 0 comments · Fixed by #973
Closed

--multiline option in csv-timeline command #972

YamatoSecurity opened this issue Mar 20, 2023 · 0 comments · Fixed by #973
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@YamatoSecurity
Copy link
Collaborator

Under the Output group in just the csv-timeline I want to add a --multiline option.
Before:

Output:
  -G, --GeoIP <MAXMIND-DB-DIR>  Add GeoIP (ASN, city, country) info to IP addresses
  -H, --HTML-report <FILE>      Save Results Summary details to an HTML report (ex: results.html)
  -o, --output <FILE>           Save the timeline in CSV format (ex: results.csv)
  -p, --profile <PROFILE>       Specify output profile

After:

Output:
  -G, --GeoIP <MAXMIND-DB-DIR>  Add GeoIP (ASN, city, country) info to IP addresses
  -H, --HTML-report <FILE>      Save Results Summary details to an HTML report (ex: results.html)
      --multiline               Output event field information in multiple rows
  -o, --output <FILE>           Save the timeline in CSV format (ex: results.csv)
  -p, --profile <PROFILE>       Specify output profile

This will do the same as cat results.csv | awk '{gsub(/ ¦ /,"\r\n"); print;}' > results-multiline.csv replacing ¦ with \r\n in order to display fields in Details and AllFieldInfo in multiple lines so that the results are not too wide.

@hitenkoku Could I ask you to do this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants