I'm having a problem with the postgresql connector, it's the first time I've tried to use it. I installed the entire elk suite in a container, I uploaded elastic, kibana, apm-server and enterprise-search, all properly installed and working.
I'm using version 8.10 of ELK all in Docker as shown in the image and the 8.10.0.0-SNAPSHOT connector from connectors-python which I downloaded from the docker.elastic.co repository
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
baffca2fecfe docker.elastic.co/enterprise-search/elastic-connectors:8.10.0.0-SNAPSHOT "/app/bin/elastic-in…" 21 minutes ago Up 21 minutes lucid_merkle
26bcdddffce4 docker-elk-main_metricbeat "/usr/bin/tini -- /u…" 3 days ago Up 3 days docker-elk-main_metricbeat_1
41f7df6c278a docker-elk-main_enterprise-search "tini -- /usr/local/…" 3 days ago Up 3 days 0.0.0.0:3002->3002/tcp, :::3002->3002/tcp docker-elk-main_enterprise-search_1
8a76515d46eb docker-elk-main_logstash "/usr/local/bin/dock…" 3 days ago Up 3 days 0.0.0.0:5044->5044/tcp, :::5044->5044/tcp, 0.0.0.0:9600->9600/tcp, :::9600->9600/tcp, 0.0.0.0:50000->50000/tcp, :::50000->50000/tcp, 0.0.0.0:50000->50000/udp, :::50000->50000/udp docker-elk-main_logstash_1
b1363f57cc84 docker-elk-main_filebeat "/usr/bin/tini -- /u…" 3 days ago Up 3 days docker-elk-main_filebeat_1
84e3b5180f82 docker-elk-main_kibana "/bin/tini -- /usr/l…" 3 days ago Up 3 days 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp docker-elk-main_kibana_1
706c5ef4b6af docker-elk-main_apm-server "/usr/bin/tini -- /u…" 3 days ago Up 3 days 0.0.0.0:8200->8200/tcp, :::8200->8200/tcp docker-elk-main_apm-server_1
d80d69a1ac78 docker-elk-main_elasticsearch "/bin/tini -- /usr/l…" 3 days ago Up 3 days 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp docker-elk-main_elasticsearch_1
I am using the following config.yml with the data generated in enterprise-search
service.log_level: DEBUG
connectors:
- connector_id: "tUO63ooBEVngNXI1-kjm"
service_type: "postgresql"
api_key: "WTF1ZTdJb0JFVm5nTlhJMVdVRFU6TDBoaEVpbzJRb20wS3FUWE9fMVZLZw=="
elasticsearch:
host: "ip:9200/"
api_key: "WTF1ZTdJb0JFVm5nTlhJMVdVRFU6TDBoaEVpbzJRb20wS3FUWE9fMVZLZw=="
I run the following docker command to upload the connector container:
docker run -v /home/irianvillalba/estudo_ar2662/connector-config:/config --network "elastic" --tty --rm docker.elastic.co/enterprise-search/elastic-connectors:8.10.0.0-SNAPSHOT /app/bin/elastic-ingest -c /config/config.yml
And with that, the index status appears in kibana, demonstrating that it is configured
And I also inform all the postgresql database access settings that I use, remembering that I do not use SSL
And in the container log of this connector that I uploaded, the following information appears:
[FMWK][19:51:56][DEBUG] Cleaning up orphaned jobs
[FMWK][19:51:56][DEBUG] No orphaned jobs found, skipping cleaning
[FMWK][19:51:56][DEBUG] Start cleaning up idle jobs...
[FMWK][19:51:56][DEBUG] No idle jobs found. Skipping...
[FMWK][19:51:57][DEBUG] Polling every 30 seconds for Job Execution
[FMWK][19:51:57][DEBUG] Polling every 30 seconds for Job Scheduling
[FMWK][19:51:57][DEBUG] [Connector id: tUO63ooBEVngNXI1-kjm, index name: search-testebanco] Sending heartbeat
[FMWK][19:51:57][DEBUG] [Connector id: tUO63ooBEVngNXI1-kjm, index name: search-testebanco] Status is Status.CONFIGURED
[FMWK][19:51:57][DEBUG] [Connector id: tUO63ooBEVngNXI1-kjm, index name: search-testebanco] Filtering is in state valid, skipping...
[FMWK][19:51:57][DEBUG] [Connector id: tUO63ooBEVngNXI1-kjm, index name: search-testebanco] 'full' sync scheduling is disabled
But when clicking the sync > sync full content button, nothing happens, no different information appears, it shows the following message "succesfully scheduled a sync, waiting for a connector to pick it up"
In kibana, this information appears about the syncs I scheduled and asked to run
And nothing happens, there is no connection with postgresql, the container does not execute the scheduled sync, the container just deletes the orphaned sync that appears in the index, so if anyone had the same difficulty or knows where I am going wrong I would be grateful