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

Add option to specify Time #9

Open
FISHMANPET opened this issue Apr 12, 2019 · 1 comment
Open

Add option to specify Time #9

FISHMANPET opened this issue Apr 12, 2019 · 1 comment

Comments

@FISHMANPET
Copy link
Member

FISHMANPET commented Apr 12, 2019

$bodySplunk['time'] = (Get-Date).toUniversalTime() | Get-Date -UFormat %s

Splunk HEC accepts whatever time value is specified (in Unix epoch time with decimals). Currently the code uses the current time but there could be a parameter added to specify an explicit time rather than using the current time (format of the time should be verified)

@travis-sobeck
Copy link
Contributor

I don't see a value in having imprecise time so just fix the bad code and skip adding a parameter. That's just more code for no value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants