Skip to main content

Posts

Showing posts from October, 2016

GIT : How to generate SSH key in Windows for GIT

Points to Remember Download and install Puttygen to generate the SSH key to be used in GIT. Save the Private Key in a safe location and do not miss it. STEP 1 : Open Puttygen to generate Key Puttygen is a opensource plugin of Putty and is used to create Public/Private keys for WinSCP. When you open the puttygen you will see the following screen as shown in image below Now Select the following Select SSH-2 RSA (Type of key to generate tabs) 1024 (Number of bits to use to generate key) Click Generate button to generate the key. STEP 2 : Generating Key After you click the generate button you will see the following screen Keep clicking on the empty space provided until progress bar reaches the end This is used to create randomness in the key. Once the progress bar reaches the end, it will show the generated key. STEP 3 : Save Public & Private Keys Once your key is generated you will see the public key in the text box at the top as shown in the image below. The screen shows the follow

Logstash : No sincedb_path set, generating one based on the file path while reading csv file

No sincedb_path set, generating one based on the file path Suppose you have a file at location $PATH/a.csv and we want to read and export data( elastic search server).Let's say you are trying to read this log file through the following configuration input { file { path => ["/some/path/a.csv"] start_position => "beginning" } } So, when you run this for the first time, this will work perfectly. The point to note here is that, when you have run this for the first time, logstash will automatically create a sincedb_path file at your home directory and it might look like .sincedb_1a892d89f927eb484cb12a7b7385ab72 . This file tells the logstash that it has already processed this file. If you want to reprocess this file, all you need to do is just delete this file. OR A better solution would be to use the following configurations input { file { path => ["/some/path/a.csv"] start_position => "beginning" sincedb_p