Issue with filebeat setup redirecting to security onion login page #11323
Replies: 1 comment 2 replies
-
We typically recommend avoiding the beat dashboard upload. For example, from https://docs.securityonion.net/en/2.3/beats.html?#winlogbeat:
Also keep in mind that Security Onion 2.4 is now available and you'll want to start thinking about migration. 2.4 moves from Beats to Elastic Agent: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am running Security Onion 2.3 Standalone version. I am trying to setup filebeat on a remote linux host so that it sends syslog data to Elasticsearch so that I can then visualize it in Kibana. I am using this tutorial for reference https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html
I am able to connect the filebeat client to the ES instance through an API key which I've specified in the filebeat.yml file on the remote host. I've also enabled the Kibana and Elasticsearch modules in filebeat. I've verified the connection from the remote host to the SO server with netcat. No issues there.
The problem is that when I run the filebeat setup and it tries to load the pre-configured Kibana dashboards, I get the follow error.
Exiting: error connecting to Kibana: fail to get the Kibana version: fail to parse kibana version (): passed version is not semver:
So I used curl from the remote host to see why it couldn't reach the endpoint at https://10.xx.xx.xx/kibana/api/status and it's because it's being redirected to the security onion login page and the filebeat setup script doesn't know how to handle that.
I've tried hardcoding the same credentials I use to login to SO into the filebeat.yml file (I know it's a horrible idea, I just wanted to see if I could get it working and right now we're in the POC phase with SO). I've tried different filebeat versions, the one I am currently using is the one you get from the Downloads page on the local SO instance.
On my local machine I am able to access the endpoint because it's the same machine I login to SO with and the browser cookies let me bypass that login page. I've verified this behavior using curl on the remote host to pass those same cookies to the endpoint and I am able to get the JSON structure which is supposed to be parsed with the filebeat setup command.
Could anyone suggest a workaround for this? I'm just trying to get syslogs from the remote host onto ES, I was able to do it with rsyslog but ES was having trouble parsing the data so that's why I looked into Filebeat. I suspect that I'm going about this completely the wrong way since I couldn't find anyone else having the same issue, so if anyone has suggestions on how to properly ingest syslog data into Kibana/ES then I'm all ears, or eyes in this case.
My filebeat version:
filebeat version 8.7.1 (amd64), libbeat 8.7.1 [bda40535cf0743b97017512e6af6d661eeef956e built 2023-04-23 04:29:02 +0000 UTC]
Here is my filebeat.yml file on the remote host:
Beta Was this translation helpful? Give feedback.
All reactions