스플렁크 포트 변경

1 개요[ | ]

스플렁크 포트 변경
  • 기본 포트는 8000(웹용), 8089(관리용)

2 명령어[ | ]

명령어 실행 후 스플렁크를 재시작해야 적용된다.

웹포트 변경
splunk set web-port 포트
관리포트 변경
splunk set splunkd-port 포트

3 실행예시[ | ]

[root@zetawiki ~]# netstat -anp | grep LISTEN | egrep "python|splunkd"
tcp        0      0 0.0.0.0:8000                0.0.0.0:*                   LISTEN      1593/python         
tcp        0      0 0.0.0.0:8089                0.0.0.0:*                   LISTEN      1526/splunkd
[root@zetawiki ~]# /opt/splunk/bin/splunk set web-port 80
Splunk username: admin
Password: 
The server's web port has been changed.
You need to restart the Splunk Web Server (splunkweb) for your changes to take effect.
→ 스플렁크 아이디/패스워드를 입력 필요 (초기 아이디/패스워드는 admin // changeme )
→ 웹 포트를 80으로 변경하였다.
→ 설정만 바뀐 것이기 때문에 splunkweb을 재시작해야 적용된다.
→ (웹 포트가 아니라 관리 포트를 변경했다면 splunkd를 재시작해야 한다.)
[root@zetawiki ~]# /opt/splunk/bin/splunk restart splunkweb
Stopping splunkweb...
                                                           [  OK  ]
        Checking http port [80]: open
                                                           [  OK  ]
Starting splunkweb...  Done
 
If you get stuck, we're here to help.  
Look for answers here: http://docs.splunk.com
 
The Splunk web interface is at http://jmnote
[root@zetawiki ~]# netstat -anp | grep LISTEN | egrep "python|splunkd"
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      2611/python         
tcp        0      0 0.0.0.0:8089                0.0.0.0:*                   LISTEN      2545/splunkd

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}