helm install --name Kibana elastic/kibana --set elasticsearchHosts="http://elasticsearch-master:9200" --set elasticsearchURL="http://elasticsearch-master:9200"
pipeline{
agent none
stages {
stage("first"){
steps {
timestamps {
logstash{
echo "hello world 1"
}
}
}
}
stage("second"){
steps{
timestamps {
logstash {
echo "hello world 2"
}
}
}
}
}
}
http://localhost:9200
http://localhost:9200/_cat/indices
http://localhost:9200/logstashtest/_search?pretty
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [
{
"_index" : "logstashtest",
"_type" : "jenkins",
"_id" : "uoOWWWoB3m4VW96z1LI3",
"_score" : 1.0,
"_source" : {
"data" : {
"id" : "4",
"projectName" : "test",
"fullProjectName" : "test",
"displayName" : "#4",
"fullDisplayName" : "test #4",
"url" : "job/test/4/",
"buildHost" : "Jenkins",
"buildLabel" : "master",
"buildNum" : 4,
"buildDuration" : 478,
"rootProjectName" : "test",
"rootFullProjectName" : "test",
"rootProjectDisplayName" : "#4",
"rootBuildNum" : 4,
"buildVariables" : {
"BUILD_DISPLAY_NAME" : "#4",
"BUILD_ID" : "4",
"BUILD_NUMBER" : "4",
"BUILD_TAG" : "jenkins-test-4",
"BUILD_URL" : "https://test.sap.com/job/test/4/",
"CLASSPATH" : "",
"HUDSON_HOME" : "/var/jenkins_home",
"HUDSON_SERVER_COOKIE" : "240b1176c4e3f0fd",
"HUDSON_URL" : "https://test.sap.com/",
"JENKINS_HOME" : "/var/jenkins_home",
"JENKINS_SERVER_COOKIE" : "240b1176c4e3f0fd",
"JENKINS_URL" : "https://test.sap.com/",
"JOB_BASE_NAME" : "test",
"JOB_DISPLAY_URL" : "https://test.sap.com/job/test/display/redirect",
"JOB_NAME" : "test",
"JOB_URL" : "https://test.sap.com/job/test/",
"RUN_CHANGES_DISPLAY_URL" : "https://test.sap.com/job/test/4/display/redirect?page=changes",
"RUN_DISPLAY_URL" : "https://test.sap.com/job/test/4/display/redirect"
}
},
"message" : [
"hello world 2"
],
"source" : "jenkins",
"source_host" : "https://test.sap.com/",
"@buildTimestamp" : "2019-04-26T12:20:17.393+0000",
"@timestamp" : "2019-04-26T12:20:17.877+0000",
"@version" : 1
}
}
]
}
}
http://localhost:5601
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
9 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |