Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Kusalananda, what I am trying here is if it find events then it should run particular command that can able to fetch events_0 as variable, i.e. curl -X PUT 'localhost:9200/$file -H 'Content-Type: application/json' -d events.json curl -X PUT 'localhost:9200/$file -H 'Content-Type: application/json' -d ylog.json ( it will pick all strings with $file ) I have files that should insert to matching string via curl so it wont insert ylog.json in other apart from ylog I apologize if my main question was not clear, Commented May 2, 2022 at 9:02
  • @Samurai See update Commented May 2, 2022 at 10:10
  • Thank you Kusalananda, it worked for me, I have used some other way instead of storing in file I am passing it as variable, thanks once again for your time and support Commented May 4, 2022 at 4:59