Executing a command from Elasticsearch/kibana

Could you please have any example that executing a command from Elasticsearch to another server etc.

i.e. moving from file "C:/aaa/a111.txt" to "C:/bbb/a111.txt"
displaying a pop-up by command Elasticsearch-kibana
note: a111.txt: normal text file, or any xlsx.docx would be fine (non Elastic-file)

I appreciate the detail method if you have.
Thanks so much for your help and co-operations.

Neither of those will execute an external command. You'd need to look at using something like Logstash, or a custom app.

Thank you for your comment.
Logstash, how can I insert mov command for relocate or rename as I have been looking?
I appreciate sample so I can understand on this matter.

Thanks so much for your help.

What is the problem you are trying to solve? Can you please provide some additional context? Why not move files using the OS utilities and commands?

I have look into kibana/search for this probelm as I just setup in this v13 below.
(Location : c-drive logstash/ C:kibana/c:searh in windows10, a111.txt for test file.)
To move the text file from file "C:/aaa/a111.txt" to "C:/bbb/a111.txt".

input {
file {
mode => "read"
path => ["C:/tmp/tet*.csv"]
sincedb_path => "nul"
start_position => "beginning"

filter {
csv {
separator => ","
date {
match => ["EVENT_TIME", "YYYYMMDD:hh:mm:ss" ]


output {
elasticsearch {
hosts => [""]
user => "elastic"
password => "P@ssw0rd!"
index => "q123"

Thanks and regards

There's nothing in the Elastic Stack that can do that for you unfortunately.

I did not find out the command using kibana-search development console so far.
I wonder you mention that something like Logstash, can work if we modify on this point in logstash. so I asked.
Have you ever obtain the information that any customer solve the problem like this ?
Thanks you so much.

This needs to be handled outside of the Elastic Stack. I am not aware of any direct solutions to this.

warkolm Mark
Thanks very much for your quickly response.
I will invest the further other application around elastic environments
in this case.
I hope elastic will invole as option in the future version.
Thanks again T1330

One question
regarding Alerts Kibana Action (Elastic subscription Gold/Platinum)
: mail WebHook Jira Microsoft Teams PagerDuty Slack are available,
which means the sending the alert from elastic and will rectify by their own
application, not sending command by elastic.
Could you tell us on this points?
Thanks for your help and co-operations

Tell you what sorry?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.