Suggestions for a new user

Hello,
out of curiosity I managed to install opensearch 1.3.19 as a cluster with 4 nodes.
I would like to do some CRUD operations in it.
How do I do it?
Do I need to install some other tools (like opensearch-dashboard)?
Also opensearch dashboard must be installed on a node or can be installed on a client?
Thanks for the suggestions.

Hi @CuriousGuy,

You should be able to CRUD your way around out of the box, just make sure your user has enough permissions: Permissions - OpenSearch Documentation

When it comes to the OpenSearch Dashboard, you install it separately and configure it to communicate with your cluster, just make sure the OS and OSD versions are compatible.

Let me know if you have more specific questions.

Best,
mj

Thanks for the reply!
I don’t know, in mongodb there is mongo shell, in opensearch how do I perform crud operations?
For now i followed

But still I have no clue on how to insert and update data.

@CuriousGuy, you could use the “Dev Tool” available in your OpenSearch Dashboards or CURL for HTTP methods, i.e.:

sample to create an index here: Create index - OpenSearch Documentation

more REST API references here: REST API reference - OpenSearch Documentation

A more common approach would be using:
Logstash
Beats
OpenSearch Data Prepper
OpenSearch Ingest Pipelines
Kinesis Data Firehose
etc…

Best,
mj

Hello @Mantas and thank you again.
I tried installing opensearch dashboard to use dev tool but now I have an error accessing it:
http:// 10.17.60.71:5601 /
OpenSearch Dashboards server is not ready yet

Here is my setup:
http:// 10.17.60.71:9200 /_cluster/health

cluster_name opensearch-cluster
status green
timed_out false
number_of_nodes 3
number_of_data_nodes 3
discovered_master true
active_primary_shards 3
active_shards 7
relocating_shards 0
initializing_shards 0
unassigned_shards 0
delayed_unassigned_shards 0
number_of_pending_tasks 0
number_of_in_flight_fetch 0
task_max_waiting_in_queue_millis 0
active_shards_percent_as_number 100

http:// 10.17.60.71:9200 /_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.17.60.72 66 87 1 0.00 0.05 0.06 dim - opensearch-d1
10.17.60.71 19 96 0 0.00 0.00 0.00 dim - opensearch-cluster_manager
10.17.60.73 36 89 0 0.00 0.00 0.00 dim * opensearch-d2

on node 10.17.60.71 i installed opensearch-dashboard 1.13.19
but when I try to access it it says
OpenSearch Dashboards server is not ready yet

I disabled https for opensearch and opensearch-dashboards

The configuration file /etc/opensearch-dashboards/opensearch_dashboards.yml
has everything to default except:

server.port: 5601
server.host: “10.17.60.71”
opensearch.hosts: [https://10.17.60.71:9200]
opensearch.ssl.verificationMode: none
opensearch.username: kibanaserver
opensearch.password: kibanaserver
opensearch.requestHeadersWhitelist: [authorization, securitytenant]
opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: [Private, Global]
opensearch_security.readonly_mode.roles: [kibana_read_only]
opensearch_security.cookie.secure: false

Hi @CuriousGuy,

I’ve noticed that you are CURL(ing) HTTP but in your opensearch_dashboards.yml opensearch.hosts: [https://10.17.60.71:9200] HTTPS could you test with:

opensearch.hosts: [http://10.17.60.71:9200]

Best,
mj

thank you sir, worked like a charm

1 Like