Introduction
Logstash Filter
date {
locale => "en"
timezone => "GMT"
match => [ "timestamp", "yyyy-mm-dd HH:mm:ss +0000" ]
}
date {
locale => "en"
timezone => "GMT"
match => [ "timestamp", "yyyy-mm-dd HH:mm:ss +0000" ]
}
where vagrant is the user of my virtual machine & its IP is 192.168.0.20
Now we will install & create a gitolite user on remote machine which will be hosting gitolite.
where ‘@’ denotes the user group i.e @staff is a group & jatin, james are the users of this group and these names must be similar to the key name stored in keydir directory.
For example “jatin” user must have the public key named “jatin.pub”
Let’s have a quick test of our setup
p { margin-bottom: 0.25cm; line-height: 120%; }a:link { }
Few days ago I got a task to create the SSL connection with logstash redis plug-in with Azure Redis. As we are shipping the logs form the several data center to the Azure Redis. So logs must be shipped on SSL connection. There is no provision to create SSL connection through logstash redis plug-in thats why logstash redis plug-in is not able to make SSL connection with Azure redis.To resolve this problem we have to setup the stunnel as proxy front of the logstash redis plug-in. Stunnel can create SSL connection with Azure redis and Stunnel provide non-ssl connection for the logstash redis plug-in.
p { margin-bottom: 0.25cm; line-height: 120%; }a:link { Azure redis provide two type of connections, SSL on 6380 port and non SSL on 6379 port and also provide primary and secondary key(password).
Install Stunnel on the ubuntu.
$ sudo apt-get install stunnel
Create a configuration for stunnel /etc/stunnel/stunnel.conf and put the following lines into the configure file.
setuid = root
setgid = root
pid = /var/run/stunnel-azureredis.pid
debug = 7
output = /var/log/stunnel4/azureredis.log
options = NO_SSLv2
options = NO_SSLv3
[azureredis]
accept=127.0.0.1:6379
connect=:6380
client=yes
Timeout idle = 30
p { margin-bottom: 0.25cm; line-height: 120%; }a:link { }
$ service stunnel4 restart
Install Redis-cli to test the connection try to ping the redis azure it should reply as PONG
$ redis-cli -a
127.0.0.1:6379> ping
PONG
Now you can make SSL connection with azure redis on SSL.
scm:git:
scm:git:git:
com.atlassian.maven.plugins
maven-jgitflow-plugin
1.0-m4.3
true
false
true
true
true
true
true
true
master-test
deploy-test
Above code snippet will perform following steps:
<distributionManagement>
<repository>
<id><auth id></id>
<url><repo url of repository managers></url>
</repository>
<snapshotRepository>
<id><auth id></id>
<url><repo url of repository managers></url>
</snapshotRepository>
</distributionManagement>
<settings>
<servers>
<server>
<id><PUT THE ID OF THE REPOSITORY OR SNAPSHOTS ID HERE></id>
<username><USERNAME></username>
<password><PASSWORD></password>
</server>
</servers>
</settings>
Finish Release jgit-flow maven plugin command
In the deploy-test branch run following command
$ mvn clean -Dmaven.test.skip=true install jgitflow:release-start
![]()
This command will take input from you for release version and create a release branch with release/. then it will push this release branch into github repository for temporarily because we are not saving the intermediate branched
Now At the end run this command
$ mvn -Dmaven.test.skip=true jgitflow:release-finish
after finishing this command it will delete release/ from local and remote.
Now you can check the changes in pom file by jgitflow. in the above snapshot, it is master-test branch, you can see in the tag it has removed the snapshot and also increased the version. It hold the current version of the application.
And in the deploy-test branch it show you new branch on which developers are working on