Closed alberpilot closed 2 years ago
It looks like splunk is unable to retrieve the alerts when port 9997 is unreachable, occupied or has not been opened.
I am adding an instruction line to advise users to switch to an alternative port for forwarding.
Included a troubleshooting section to ask users to check if port 9997 is open and listening, or switch to a new port from the forwarding and receiving section of Splunk.
ERROR: mgmt port [8089] - port is already bound. Splunk needs to use this port.
Unable to retrieve results. It may be due to a connection problem with the Splunk forwarder, please try restarting this service.
. Testing 8.2.2 to check if is a problem of 8.1.4 versionroot@ubuntu20:/vagrant# netstat -an | grep 8089
tcp 0 0 0.0.0.0:8089 0.0.0.0:* LISTEN
root@ubuntu20:/vagrant# fuser 8089/tcp
8089/tcp: 41817
root@ubuntu20:/vagrant# ls -l /proc/41817/exe
lrwxrwxrwx 1 root root 0 Apr 7 18:22 /proc/41817/exe -> /opt/splunk/bin/splunkd
AutoLoadBalancedConnectionStrategy [46723 TcpOutEloop] - Found currently active indexer. Connected to idx=192.168.57.118:12000, reuse=1.
Before config change
After config change
I have found that the change of the indexer port (troubleshooting) is mandatory in all test i have done. We need to change the default 9997 port since the beginning to avoid this.
I have moved the troubleshooting section to the install and configure splunk indexer instructions as items 4-8. This way, once Splunk is configured before the forwarder is configured with the indexer port, we are already using an unused port and there should be no conflicts in outputs.conf.
`
Unable to retrieve results. It may be due to a connection problem with the Splunk forwarder, please try restarting this service
`
add forward-server
command does not work as it shouldSince the current documentation indicates this type of deployment, we must add the AIO type deployment to the guide with these steps, note that the main difference is the use of splunk login, the initial port change and the multiple necessary restarts
Generally, from what I have seen, this type of deployment is not recommended in the splunk forums due to performance issues, but for testing they should be useful. Also, although the documentation indicates that this deployment is possible, there are users who indicate that certain commands have problems and step on each other, such as boot start
04-08-2022 22:40:31.155 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.156 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.157 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.157 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.159 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.533 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.535 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.536 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.538 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.540 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.551 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.553 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.555 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.557 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.567 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
04-08-2022 22:40:31.569 +0000 WARN SearchResultsFiles - Unable to parse site_label, label=invalid due to err="Invalid site id: invalid"
Guides
@rauldpm's Steps worked for the all-in-one architecture.
We now have 3 methods of installing Wazuh with Splunk:
Hello,
Following the documentation guide I have to remark some points that sounds bad for me:
inputs.conf
file provided in the documentation doesn't work for me. I have to modified like this:
[splunktcp://9997]
disabled = 0
connection_host = ip
curl
to perform the next step.
Considerations: I have set up two nodes:
RBAC successfully configured and tested.
After following the guide we noticed that something is not working on the guide. The following issue comment https://github.com/wazuh/wazuh/issues/12913#issuecomment-1084742999 shows the problems encountered: