どのサーバーが私に接続しようとしているかを示すログ

どのサーバーが私に接続しようとしているかを示すログ

CentOSコンピュータで実行しています。

何か(クローンジョブ、Jenkinsジョブ、不明)が私のサーバーにアクセスしていますが、どのサーバーなのかわかりません。 5分ごとに次のログメッセージが表示されます。

2017-03-31 08:49:15,696 - [INFO] - from application in Timer-1 
Application: checkBD2Health end - true

2017-03-31 08:54:13,878 - [INFO] - from application in Timer-1 
ChartManager: getIncompleteJobs request select chartID,userEmail from dashboard.saved_charts_staging where queryComplete = 0

2017-03-31 08:54:14,545 - [INFO] - from application in Timer-1 
ChartManager: getIncompleteJobs success with 0 incomplete jobs.

2017-03-31 08:54:14,545 - [INFO] - from application in Timer-1 
ChartManager: Checked QueryNow background jobs.

2017-03-31 08:54:14,546 - [INFO] - from application in Timer-1 
Application: checkBD2Health initial - true

2017-03-31 08:54:14,546 - [INFO] - from application in Timer-1 
Application: bd2Endpoint

2017-03-31 08:54:14,546 - [INFO] - from application in Timer-1 
Application: bd2Endpoint - http://server.domainname.com:9090/job/request?dataSource=impala&webDataFormat=CSV&sqlStatement=select count(*) from bigdata.cmdb

2017-03-31 08:54:15,631 - [INFO] - from application in Timer-1 
Application: checkBD2Health - 200 count(*)
27066092


2017-03-31 08:54:15,632 - [INFO] - from application in Timer-1 
Application: checkBD2Health end - true

2017-03-31 08:59:13,878 - [INFO] - from application in Timer-1 
ChartManager: getIncompleteJobs request select chartID,userEmail from dashboard.saved_charts_staging where queryComplete = 0

bd2EndpointとcheckBD2Healthというタスクを見つけるためにserver.domainname.comに行きましたが、Jenkinsまたはサービスアカウントのcrontabで何も見つかりませんでした。

/var/log/secure ファイルを確認しましたが、誰かがsshを介してサーバーにアクセスした時間がログの時刻と一致しませんでした。

とにかく、元の質問に戻って、私のサーバー(SSHではない)に誰が何を接続しているのかを知る方法はありますか?

ベストアンサー1

netstat -pan使用しているポートは、そのポートを使用するプロセスとともに表示されます。

watch netstat -panこの情報は動的に表示され、何がサーバーにアクセスしているかを把握するのに役立ちます。

おすすめ記事