Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55621

how can logstash plugin send multiple line once time to es with block usage?

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • logstash-plugin
    • None

      See screenshot  for original text ...

      well may be I create issure with wrong scope but ¡ really cannot found how to report a problem with logstash plugin, ¡ redirect into this from the logstash plugin repo in github, its much appreciate for your reading this questiong.

      when I use logstash plugin with block like this:

      {{ timestamps{timestamps{ logstash{ script{}}
      {{ sh ‘mvn clean compile’ sh “mvn org.jacoco:jacoco-maven-plugin:prepare-agent test Dmaven.test.failure.ignore=trueN)}}

      {{ } }} }}

      that is, mvn compile and mvn test may generate much much more lines of logs, perhaps l000k+ lines of logs, and ¡ known that logstash plubin with block will send each line to es as a doc, and in this time my api will gateway timeout when read it out from the es. so how can logstash plugin write multiple lines to logs to es once time. than a doc ¡n es can have multiple lines such as loo and can reduce the total counts for entire logs.

      thanks a lot for any response! best wishes

          [JENKINS-55621] how can logstash plugin send multiple line once time to es with block usage?

          Alex Earl added a comment -

          Please add your description back. I'm not sure how you missed the Jenkins project in JIRA.

          Alex Earl added a comment - Please add your description back. I'm not sure how you missed the Jenkins project in JIRA.

          Markus Winter added a comment -

          This is not possible currently.

           

          Markus Winter added a comment - This is not possible currently.  

          litong deng added a comment -

          well i wrote a lot 2days ago but when i reopen today i coulf not found the content, and luckily i got a screenshot that time. slide_o_mix. And as for the answer from mwinter69, I know more about this, thank you!

          litong deng added a comment - well i wrote a lot 2days ago but when i reopen today i coulf not found the content, and luckily i got a screenshot that time. slide_o_mix . And as for the answer from mwinter69 , I know more about this, thank you!

          Markus Winter added a comment - - edited

          You can use the logstashSend step with maxLines set to negative value.

          logstashSend failBuild: true, maxLines: -1

          This will send the complete log and not just the last lines.

          Markus Winter added a comment - - edited You can use the logstashSend step with maxLines set to negative value. logstashSend failBuild: true , maxLines: -1 This will send the complete log and not just the last lines.

          Ian Williams added a comment -

          Converted image to text for you, but don't believe this is the right place for support.

          This is a bug tracker, not a support forum — consider using a more appropriate place, like the users' mailing list: https://jenkins.io/mailing-lists/ or Stackoverflow(Jenkins)

          If this is an internal support issue, then this is the wrong forum.

          Consider setting the issue to Closed and posting in another forum

          Ian Williams added a comment - Converted image to text for you, but don't believe this is the right place for support. This is a bug tracker, not a support forum — consider using a more appropriate place, like the users' mailing list: https://jenkins.io/mailing-lists/ or Stackoverflow(Jenkins) If this is an internal support issue, then this is the wrong forum. Consider setting the issue to Closed and posting in another forum

            Unassigned Unassigned
            denglitong litong deng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: