Home > database >  Logstash obtain mongo data synchronization to Elasticsearch problem
Logstash obtain mongo data synchronization to Elasticsearch problem

Time:10-13

Logstash. Conf configuration file
 
Input {
Mongo {
Uri=& gt; "Mongo: ://account password @ 68.78.33.187:27017,68.78. 33.161:27017/aggregation"
Placeholder_db_dir=& gt; "../logstash - input - directing a
"The collection=& gt; "DesktopMessage
"}
}

The filter
{
# the mongo _id replace because _id is at odds with es the _id
Mutate {
Rename=& gt; [" _id ", "uid"]
}
}

The output {

Stdout {
The codec=& gt; Json_lines
}
}



Error message
 
D, [the 2020-04-10 T09:05:54. 363000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : TopologyOpening topology=Unknown>
D, [the 2020-04-10 T09:05:54. 414000 # 17120] the DEBUG - : mongo | Topology type 'unknown' the initializing.
D, [the 2020-04-10 T09:05:54. 482000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : ServerOpening address=68.78.33.187:27017 topology=Unknown>
D, [the 2020-04-10 T09:05:54. 486000 # 17120] the DEBUG - : mongo | Server 68.78.33.187:27017 the initializing.
D, [the 2020-04-10 T09:05:54. 986000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : ServerDescriptionChanged>
D, [the 2020-04-10 T09:05:55. 007000 # 17120] the DEBUG - : mongo | Server description for 68.78.33.187:27017 changed from 'unknown' to 'primary'.
D, [the 2020-04-10 T09:05:55. 065000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : ServerOpening address=68.78.33.161:27017 topology=Unknown>
D, [the 2020-04-10 T09:05:55. 069000 # 17120] the DEBUG - : mongo | Server 68.78.33.161:27017 the initializing.
D, [the 2020-04-10 T09:05:55. 218000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : ServerDescriptionChanged>
D, [the 2020-04-10 T09:05:55. 223000 # 17120] the DEBUG - : mongo | Server description for 68.78.33.161:27017 changed from 'unknown' to 'secondary'.
D, [the 2020-04-10 T09:05:55. 226000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : ServerOpening address=68.78.33.85:27018 topology=Unknown>
D, [the 2020-04-10 T09:05:55. 227000 # 17120] the DEBUG - : mongo | Server 68.78.33.85:27018 the initializing.
D, [the 2020-04-10 T09:05:55. 253000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : ServerDescriptionChanged>
D, [the 2020-04-10 T09:05:55. 256000 # 17120] the DEBUG - : mongo | Server description for 68.78.33.85:27018 changed from 'unknown' to 'arbiter.
D, [the 2020-04-10 T09:05:55. 308000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : TopologyChanged prev=Unknown new=Unknown>
D, [the 2020-04-10 T09:05:55. 322000 # 17120] the DEBUG - : mongo | There was a change in the members of the 'unknown' topology.
D, [the 2020-04-10 T09:05:55. 367000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : TopologyChanged prev=Unknown new=Unknown>
D, [the 2020-04-10 T09:05:55. 368000 # 17120] the DEBUG - : mongo | There was a change in the members of the 'unknown' topology.
D, [the 2020-04-10 T09:05:55. 430000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : TopologyChanged prev=Unknown new=ReplicaSet>
D, [the 2020-04-10 T09:05:55. 440000 # 17120] the DEBUG - : mongo | Topology type 'unknown' changed to type 'up set.
D, [the 2020-04-10 T09:05:55. 452000 # 17120] the DEBUG - : mongo | EVENT: # & lt; Mongo: : Monitoring: : Event: : TopologyChanged prev=ReplicaSet new=ReplicaSet>
D, [the 2020-04-10 T09:05:55. 454000 # 17120] the DEBUG - : mongo | There was a change in the members of the 'up set topology.
[the 2020-04-10 T09:05:55, 498] [INFO] [logstash. Inputs. Directing] [the main] Registering directing input
[the 2020-04-10 T09:05:56, 791] [INFO] [logstash. Agent] Successfully started logstash API endpoint {: port=& gt; 9600}
[the 2020-04-10 T09:06:01, 841] [INFO] [logstash. Runner] logstash shut down.




Logstash - input - directing a plugin has been installed, is there any other operations
Placeholder_db_dir also don't know what meaning is
Have a great spirit clear

CodePudding user response:

Finally to logstash - input - HTTP, reports the way of collecting data over HTTP
  • Related