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

[Filebeat][Fortinet] Add the ability to set a default timezone in fortinet config #20300

Closed
marc-gr opened this issue Jul 29, 2020 · 8 comments · Fixed by #26524
Closed

[Filebeat][Fortinet] Add the ability to set a default timezone in fortinet config #20300

marc-gr opened this issue Jul 29, 2020 · 8 comments · Fixed by #26524
Assignees
Labels
7.15 Candidate enhancement Filebeat Filebeat good first issue Indicates a good issue for first-time contributors

Comments

@marc-gr
Copy link
Contributor

marc-gr commented Jul 29, 2020

Describe the enhancement:

Some fortinet logs do not have a tz field to set the timezone from, now we are defaulting to UTC for this, but would be desirable to set a fallback default timezone if this happens.

Describe a specific use case for the enhancement or feature:

When we have a log like

<189>date=2020-07-20 time=08:29:08 devname="name" devid="id" logid="0000000013" type="traffic" subtype="forward" level="notice" vd="root" eventtime=1595226548 srcip=1.1.1.1 srcport=53384 srcintf="src-1243" srcintfrole="dmz" dstip=192.168.1.1 dstport=80 dstintf="port25" dstintfrole="lan" poluuid="aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa" sessionid=3022129855 proto=6 action="close" policyid=213 policytype="policy" service="HTTP" dstcountry="Reserved" srccountry="Reserved" trandisp="noop" duration=3 sentbyte=2942 rcvdbyte=12589 sentpkt=21 rcvdpkt=28 policyname="name" appcat="unscanned"

we want to be able to define which timezone it is other than UTC

cc\ @P1llus

@marc-gr marc-gr added enhancement Filebeat Filebeat good first issue Indicates a good issue for first-time contributors Team:SIEM labels Jul 29, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@jamiehynds
Copy link

This issue came up recently on Discuss, with a user providing a workaround: https://discuss.elastic.co/t/filebeat-using-fortinet-module-tz-issue/251518/10

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@111andre111
Copy link
Contributor

111andre111 commented Nov 16, 2020

This is a possible workaround but what we really want is related to these 2 issues:

  1. Fix the problem that there is a prepopulated timezone applied when there shouldn't be one.

#20273

  1. Additionally we want it to automatically set a default timezone when no timezone is available in the message in our issue here.

Important to mention here is that this can happen only with older Fortinet Firmwares.
Here was a discussion around this topic:

#19010 (comment)

@jsoriano
Copy link
Member

For consistency, it could be interesting to do what we do in other modules with similar problematics:

@nicpenning
Copy link
Contributor

Just a note, you can use eventtime as a UTC time that matches the date time fields. Why not use that time?

In your example above:

date=2020-07-20 time=08:29:08

eventtime=1595226548 == Monday, July 20, 2020 6:29:08 AM

Thoughts?

@zez3
Copy link

zez3 commented May 27, 2021

Would this be something related?
#11273

@nicpenning
Copy link
Contributor

Would this be something related?
#11273

No, I don't think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.15 Candidate enhancement Filebeat Filebeat good first issue Indicates a good issue for first-time contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants