[PLUG] Curl is unable to display all snapshots from the list

Gaurav Pant gauravggs at gmail.com
Fri Jul 12 10:25:30 IST 2024


Hi,

On Thu, Jul 11, 2024 at 10:15 PM Amey via plug-mail <plug-mail at plug.org.in>
wrote:

> Hello,
>
> I am using curl with a complex combination after a long time.
>
> The command: curl -s
> http://localhost:9200/_snapshot/opensearch-dev/_all/ | jq '.[] |
> sort_by(.fieldname)' | grep -oE 'snapshot[_]?[0-9]+'
>
>
Can you share the output without the pipes and filters?  Difficult to say
what is going on without the actual data.


> The output:
> snapshot_20240703
> snapshot_20240703
> snapshot_20240705
> snapshot_202407051028
> snapshot_202407050847
> snapshot_202407051101
> snapshot_202407051141
> snapshot_202407051142
>
> But there are more snapshots in the same list with name's =
> 202407090000 , 202407100000 , 202407110000
> Original value format = ["snapshot": "202407110000",]
>
> The script is unable to display these snapshots in the list.
> What can be the possible issue? Is it the 4 zero's at the end?
> Any hints? Thanks.
>
> Regards,
> Amey.
> _______________________________________________
> plug-mail mailing list
> plug-mail at plug.org.in
> http://list.plug.org.in/listinfo/plug-mail
>


-- 
Gaurav Pant
-------------------------------------------
http://OpenSourceCook.in
If you can cook, you can code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.plug.org.in/pipermail/plug-mail/attachments/20240712/4ac9487c/attachment.htm>


More information about the plug-mail mailing list