Skip to content

Commit

Permalink
inspect running es query
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Jan 10, 2025
1 parent 4f2b8c6 commit 361d4de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/console/logs/provider/elastic.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmodule Console.Logs.Provider.Elastic do
end

defp search(%Logging.Elastic{index: index, host: host} = conn, query) do
IO.inspect(query)
case HTTPoison.post("#{host}/#{index}/_search", Jason.encode!(query), headers(conn)) do
{:ok, %HTTPoison.Response{body: body, status_code: 200}} ->
with {:ok, resp} <- Jason.decode(body),
Expand Down

0 comments on commit 361d4de

Please sign in to comment.