• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to search ES from the command line

AndyB

Well-known member
#3
Hi Slavik,

The problem I don't know what the search field options are. Are you talking about message and title or some other field? Could you provide an example of a command line that would search the message text for "test1234".

Thank you.
 

AndyB

Well-known member
#6
I would like to be able to search by user_id and keyword, but this doesn't work.

curl 'http://localhost:9200/database_name/_search?user=1&q=message:andy'

I need to find the correct user=1 part of this command.