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

Fortigate logs not parsed #22675

Closed
lynxium69 opened this issue Nov 19, 2020 · 8 comments
Closed

Fortigate logs not parsed #22675

lynxium69 opened this issue Nov 19, 2020 · 8 comments

Comments

@lynxium69
Copy link

Hello,

I've just install a new ELK server on debian , with a rsylog server in debian 10 also
fortigate syslog are send to syslog server then to ELK server.

I have a problem , logs are not parsed on ELK , all the data arrived in one field (message).

On ELK
image

On syslog server
image

Fortigate syslog config
image

  • Version:
    fortigate 300E version 6.2.2
    filebeat 7.10.0
    elk v 7.10.0
  • Operating System: debian 10 x64

Thanks for you help

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 19, 2020
@elasticmachine
Copy link
Collaborator

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

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Nov 19, 2020
@jamiehynds
Copy link

Hi @lynxium69! We have a Filebeat module which parses Fortinet logs and maps them to Elastic Common Schema fields. Based on your screenshots, it looks like you don't have that module enabled. Please see here for the steps involved. You will need to enable 'firewall' dataset to parse the FortiOS logs.

@lynxium69
Copy link
Author

Hello @jamiehynds ,
Thanks a lot for your answer.
i check fortinet.yml file , firewall module is well enable :(

image

I use a rsyslog server to receive log from fortigate, does the problem can be this choice ?
Do you recommand to send log directly to filebeat module without using rsyslog server ?
Regards

@P1llus
Copy link
Member

P1llus commented Nov 20, 2020

Hello @lynxium69 , did you also run the "filebeat setup" command from the docs as well? This mostly happens when that step is forgotten.

You can forward data from a rsyslog server, as long as you are sending the raw unchanged message, default templates often modifies the message before forwarding.

@lynxium69
Copy link
Author

Thanks @P1llus ! , i run filebeat setup with debug mode enable and i found this error

image

Do you know how can it be resolved ?

@lynxium69
Copy link
Author

Hello, sorry to insist , but nobody now how to resolve "Error setting up ML for apache_ecs" ?
This error appear during filebeat setup.

Regards

@P1llus
Copy link
Member

P1llus commented Nov 26, 2020

Hello @lynxium69 . Unfortunately github is here to report bugs. You are indeed hitting a issue that has been tracked on a few modules like here: #22567

I won't be able to give a concrete answer, but I can give you a workaround in the meantime and hope that helps.

Please run filebeat setup and defining what the setup should install, this should get you going:
filebeat setup --pipelines --dashboards --index-manager --modules fortinet

@lynxium69
Copy link
Author

Hello @P1llus ,
After long time of search , your advice about sending raw unchanged message to filebeat help me a lot !!
i disabled rsys log server , and i enabled syslog reveiving on port 514 in filebeat fortinet module directly in /etc/filebeat/modules.d/fortinet.yml

  • module: fortinet
    firewall:
    enabled: true
    var.input: udp
    var.syslog_host: 10.33.252.47
    var.syslog_port: 514

Thanks a lot @P1llus !!
Now dashboards fortinet can be done !!

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

No branches or pull requests

5 participants