Git Product home page Git Product logo

Comments (2)

pgporada avatar pgporada commented on September 25, 2024

If you mean this port value (from the README), "port" => 43920,

{
              "ansible_type" => "start",
                     "level" => "INFO",
                   "session" => "111f73e0-eb57-11e6-bc8d-e4115b24f077",
                   "message" => "START playbooks/deploy-aws-bastion.yml",
                      "type" => "ansible",
          "ansible_playbook" => "playbooks/deploy-aws-bastion.yml",
                      "tags" => [],
                      "path" => "/opt/work/ansible-playbook-bastion/ansible/plugins/callbacks/logstash-latest.py",
                "@timestamp" => 2017-02-05T03:56:26.335Z,
                      "port" => 43920,
                  "@version" => "1",
                      "host" => "laptappy",
               "logger_name" => "python-logstash-logger",
"ansible_pre_command_output" => "ansible 2.2.1.0",

That's just an ephemeral port and is being shown because this is verbose output. The input default TCP/5000 port is the important thing to worry about during configuration.

from ansible-logstash-callback.

makayel avatar makayel commented on September 25, 2024

Hello,

I don't have issue with the configuration. It's just that the port value change for the same task as you can see on my logstash output. I don't know if this value is generated by ansible or python-logstash.

{
                  "ansible_tags" => [
        [0] "hdfs-clean"
    ],
                  "ansible_type" => "task",
                         "level" => "INFO",
                "ansible_result" => "{\"changed\": false, \"skip_reason\": \"Conditional result was False\"}",
                       "session" => "ea0bf812-3193-11e8-9ea6-0019d2e0d6d4",
               "ansible_play_id" => "0019d2e0-d6d4-2d01-f387-000000000022",
                       "message" => "Same message",
                     "inventory" => [
        [0] "inventory"
    ],
                          "type" => "ansible",
                  "ansible_task" => "UT-00-HDFS-01 : Unit Test - HDFS - NNBench Read.",
                          "tags" => [],
             "ansible_skip_tags" => [],
                          "path" => "callback_plugins/logstash.py",
               "ansible_task_id" => "0019d2e0-d6d4-2d01-f387-000000000037",
             "ansible_checkmode" => false,
                  "ansible_host" => "ansible_host",
             "ansible_play_name" => "hdfs",
                    "@timestamp" => 2018-03-27T07:53:33.319Z,
    "ansible_pre_command_output" => "ansible 2.4.2.0\n",
                          "port" => 59026,
                          "host" => "host",
                      "@version" => "1",
                   "logger_name" => "python-logstash-logger",
                        "status" => "SKIPPED"
}
{
                  "ansible_tags" => [
        [0] "hdfs-clean"
    ],
                  "ansible_type" => "task",
                         "level" => "INFO",
                "ansible_result" => "{\"changed\": false, \"skip_reason\": \"Conditional result was False\"}",
                       "session" => "ea0bf812-3193-11e8-9ea6-0019d2e0d6d4",
               "ansible_play_id" => "0019d2e0-d6d4-2d01-f387-000000000022",
                       "message" => "Same message",
                     "inventory" => [
        [0] "inventory"
    ],
                          "type" => "ansible",
                  "ansible_task" => "UT-00-HDFS-01 : Unit Test - HDFS - NNBench Read.",
                          "tags" => [],
             "ansible_skip_tags" => [],
                          "path" => "callback_plugins/logstash.py",
               "ansible_task_id" => "0019d2e0-d6d4-2d01-f387-000000000037",
             "ansible_checkmode" => false,
                  "ansible_host" => "ansible_host",
             "ansible_play_name" => "hdfs",
                    "@timestamp" => 2018-03-27T07:53:33.319Z,
    "ansible_pre_command_output" => "ansible 2.4.2.0\n",
                          "port" => 59030,
                          "host" => "host",
                      "@version" => "1",
                   "logger_name" => "python-logstash-logger",
                        "status" => "SKIPPED"
}

from ansible-logstash-callback.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.