-
Notifications
You must be signed in to change notification settings - Fork 200
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
JSON output does not output in original order #1264
Comments
hitenkoku
added a commit
that referenced
this issue
Feb 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that the fields in JSON output are outputted in alphabetical order instead of the original order. This makes creating rules a little difficult so it would be better to output in the original order.
Here is the rule that I was creating:
When using
csv-timeline
(./target/release/hayabusa csv-timeline -d ../hayabusa-sample-evtx -r ../hayabusa-rules/hayabusa/builtin/System/Sys_6009_Info_ComputerStartup.yml -C -w -o 6009-test.csv
), the order is correct:"2014-11-26 06:52:38.000 +09:00","IE8Win7","Sys",6009,"info",3554,"Computer Startup","First: 6.01. ¦ Second: 7601 ¦ Third: Service Pack 1 ¦ Forth: Multiprocessor Free ¦ Fifth: 17514","-"
However, when I save to JSON (
./hayabusa-2.13.-dev json-timeline -d ../hayabusa-sample-evtx -r ../hayabusa-rules/hayabusa/builtin/System/Sys_6009_Info_ComputerStartup.yml -w
), the order changes:@hitenkoku Could you take a look at this?
The text was updated successfully, but these errors were encountered: