How can I send output of a Filebeat in one system to a File in another system? - filebeat

Generally filebeat can send output to a file in a local system but I want to send output to a file in remote system.
can any one tell me whether it is possible or not?

If the remote system is windows, you can create a remote shared folder.

Related

Steps to transfer file from One Windows Remote Server to another Windows Remote Server using OS Process Sampler in JMeter

I have transferred or copied a files from local machine to Server successfully using OS Process Sampler but unable to transfer a file from One remote server to another remote server on windows.
Can anyone explain me the process or share the steps or command which are being used to do the same.
Thanks
If you have OpenSSH servers on both machines you can use SSH Command sampler to execute scp command for transferring a file from one remote machine to another remote machine
In case of Windows you might have to provide the full path to scp.exe binary like:
C:\Windows\System32\OpenSSH\scp.exe
The exact configuration may differ depending on source/destination paths, whether public key authentication is enabled or not, etc.
Also SSH Command sampler doesn't come with JMeter, you will need to install it as a part of SSH Protocol Support bundle using JMeter Plugins Manager

How to write to remote linux directory

How to expose a directory in remote ubuntu server so that I can read & write to that directory from remote machines.
Actually, I have a web application and I need to write to the AWS EC2 instance's directory and create directories using java program running in another server.
Note: I do not want to run a java program in AWS instance just for writing files.
Thanks in advance
I think you can use sftp from Java: https://www.example-code.com/java/sftp.asp or https://kodehelp.com/java-program-for-uploading-file-to-sftp-server

SSH FTP Upload to FTP server

I am trying to upload a large file from my linux server via SSH to a ftp server. (i only have ftp access to this remote server)
Here is the command i am trying to do
put myfile.zip
Result:
150 Opening BINARY mode data connection for myfile.zip
The transfer starts but upon getting to about 10gb uploaded, i get this error. and the file deletes itself from the ftp server.
451 Transfer aborted. Input/output error
I was wondering if there is an alternative or if i am doing something wrong? or even if there is a way i can resume the upload..
The protocol has no limitations, but most servers have default upload limits out-of-the-box. There are also timeouts on concrete servers applicable.
You said you can SSH to it, didn't you? So what about scp to it, or to mount remote folder as sshfs aka sftp?

Delete repository from local with effect server data?

I just want to delete my repository in my local pc because the size is too big. My idea is keep all file in svn server and delete svn on local pc so that all file is backup on server. Please help.
Via FTP or Samba you could map a network drive to the repository's location on the server. This would allow you to directly access the files (edit a project in an IDE, etc) and commit directly to the server without any local hard drive space consumed.
Be aware, if you are using your repository for code, compiling will most likely be severely limited by your network connection.

How to use ssh tunneling to forward a *service* like X11 or authentication?

I want to create a service that will allow me to display documents and media (think PDF and JPEG) that are stored in the filesystem of a remote server to which I connect by ssh. X11 forwarding doesn't cut it because it's too slow. Instead I want to design a protocol that will copy files from the remote system on demand, then display them.
My question is twofold:
How do I acquire a port on the remote machine? Since I may have multiple connections going, I cannot simply use a single well-known port—I will have to allocate a port dynamically.
Once I have my port, how do I communicate it to the display applications on the remote machine? SSH X11 forwarding communicates by setting the DISPLAY environment variable, and agent forwarding communicates by setting the SSH_AUTH_SOCK environment variable. Perhaps I can do something creative with a remote command?
I welcome any ideas.
Do you really need a remote port? If you can ssh into the remote machine, why not run a command and send data back over the ssh command, like rsync, Mercurial, Git, and so on do. SSH can provide an 8-bit clean connection, so it's just like having a socket connection.
To be clear, what i am suggesting is:
SSH from origin to the destination
In the SSH session, run a command on the destination that writes data to its standard output
The standard output is sent over the SSH connection from destination to origin
Collect the data that emerges from the standard output of SSH on the origin machine
There is then no need to open a particular port on either the origin or the destination.
Indeed, if what you really want is "a protocol that will copy files from the remote system on demand", how about SCP, SFTP, or rsync over SSH?