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

Additional clarifications on time module and formatting #583

Closed
kris-watts-gravwell opened this issue Feb 2, 2023 · 1 comment
Closed
Assignees
Labels
enhancement improvement or extension of existing feature Medium medium priority
Milestone

Comments

@kris-watts-gravwell
Copy link
Contributor

Referencing this: https://docs.gravwell.io/search/time/time.html

What is the enhancement to be made?

the -f flag is a little unclear that it it is for input and output. A few more examples would be good.

I would like to see an example that shows how to take an EV that is a string, turn it into a timestamp, then format it to another output:

This query felt like it should have puked out the two outtime evs with the specified format:

tag=testxml first 
| xml event[time] 
| time -f "Mon Jan _2 15:04:05 2006 MST" TIMESTAMP outtime1 
| time -f "Mon Jan _2 15:04:05 2006 MST" time outtime2
| table TIMESTAMP time outtime1 outtime2

But what i REALLY needed was:

time time outtime2 | time -f ... outtime2 what_i_really_wanted

Why should we make this change? (Business justification? What problem is the feature trying to solve?)

Just add another example or two of what it looks like to take a timestamp and reformat it for human consumption in query.

Any other comments?

...

@kris-watts-gravwell kris-watts-gravwell added enhancement improvement or extension of existing feature Medium medium priority labels Feb 2, 2023
@kris-watts-gravwell kris-watts-gravwell added this to the v5.2.1 milestone Feb 6, 2023
@ashnwade
Copy link
Collaborator

potentially puntable. fritz expressed wanting to do some changes to the module itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvement or extension of existing feature Medium medium priority
Projects
None yet
Development

No branches or pull requests

3 participants