DEV Community

Mallikarjun H T
Mallikarjun H T

Posted on

ES - Index API - part 4

Indices Stats

curl -X GET "localhost:9200/_stats?pretty"
Enter fullscreen mode Exit fullscreen mode

Indices Segments

curl -X GET "localhost:9200/test/_segments?pretty"

curl -X GET "localhost:9200/test/_segments?verbose=true&pretty"

Enter fullscreen mode Exit fullscreen mode

Indices Recovery

curl -X GET "localhost:9200/_recovery?human&pretty"

curl -X GET "localhost:9200/_recovery?human&detailed=true&pretty"

Enter fullscreen mode Exit fullscreen mode

Indices Shard Stores

# return information of only index test
curl -X GET "localhost:9200/test/_shard_stores?pretty"
# return information of only test1 and test2 indices
curl -X GET "localhost:9200/test1,test2/_shard_stores?pretty"
# return information of all indices
curl -X GET "localhost:9200/_shard_stores?pretty"

Enter fullscreen mode Exit fullscreen mode

Clear Cache

curl -X POST "localhost:9200/twitter/_cache/clear?pretty"
Enter fullscreen mode Exit fullscreen mode

Flush

curl -X POST "localhost:9200/twitter/_flush?pretty"

Enter fullscreen mode Exit fullscreen mode

Synced Flush

curl -X POST "localhost:9200/twitter/_flush/synced?pretty"

Enter fullscreen mode Exit fullscreen mode

Refresh

curl -X POST "localhost:9200/twitter/_refresh?pretty"

Enter fullscreen mode Exit fullscreen mode

Force Merge

curl -X POST "localhost:9200/twitter/_forcemerge?pretty"
Enter fullscreen mode Exit fullscreen mode

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

Retry later