Post

Tableau Trust Ticket 발급받기

tableau 연동시 ticket 발급 관련 정보 정리

Tableau Trust Ticket 발급받기

1. 신뢰할 수 있는 ip 추가

  • ticket 발급을 위해선 태블로 서버의 접근 허용 ip 목록에 태블로 서버를 내장할 서버 ip가 등록되어있어야 합니다.
  • 신뢰할 수 있는 ip 등록은 tsm -> 구성 -> 사용자 ID 및 엑세스 -> 신뢰할 수 있는 인증 에서 할 수 있습니다.

2. 티켓 발급

1. ticket test를 할 수 있는 api 요청 페이지

  • 아래의 코드를 로컬 pc에 생성 후 username, client ip, server ip를 변경한 후에 정상적으로 티켓 발급이 이루어지는지 우선적으로 확인할 수 있습니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html>
<head>
<title>Trusted Ticket Requester</title>
<script type="text/javascript">
  function submitForm(){
    document.getElementById('form1').action =
    document.getElementById('server').value + "/trusted";
  }
</script>
<style type="text/css">
  .style1 {width: 100%;}
  .style2 {width: 429px;}
  #server {width: 254px;}
</style>
</head>
<body>
<h3>Trusted Ticketer</h3>
<form method="POST" id="form1" onSubmit="submitForm()">
  <table class="style1">
    <tr>
      <td class="style2">Username</td>
      <td><input type="text" name="username" value="" /></td>
    </tr>
    <tr>
      <td class="style2">Server</td>
      <td><input type="text" id="server" name="server" value="https://" /></td>
    </tr>
    <tr>
      <td class="style2">Client IP (optional)</td>
      <td><input type="text" id="client_ip" name="client_ip" value="" /></td>
    </tr>
    <tr>
      <td class="style2">Site (leave blank for Default site; otherwise enter the site name)</td>
      <td><input type="text" id="target_site" name="target_site" value="" /></td>
    </tr>
    <tr>
      <td class="style2"><input type="submit" name="submittable" value="Get Ticket" /></td>
      <td>&#160;</td>
    </tr>
  </table>
</form>
<h4>Be sure to add your IP as a Trusted IP address to the server</h4>
</body>
</html>

2. curl을 이용한 티켓 발급

1
2
3
curl -k -d '{"username": "admin"}' \
-H "Content-Type: application/json" \
-x POST https://xx.xx.xx.xx/trusted

3. 티켓 발급 실패시 로그 확인

1. 로그 level 변경

  • 정상적인 티켓 발급이 이루어지지 않을 경우 원인 파악을 위한 로그 확인이 필요합니다.
  • 이를 위해 기본 로그 level을 info(기본)에서 debug로 변경합니다.
1
2
tsm configuration set -k vizqlserver.trustedticket.log_level -v debug
tsm pending-changes apply
  • 변경 후 정상적용을 위해 서버 재부팅 이 반드시 필요합니다.

2. 로그 파일 위치

//window
ProgramData\Tableau\Tableau Server\data\tabsvc\logs\vizqlserver\vizql-*.log

//linux
/var/opt/tableau/tablea_server/data/tabsvc/logs/vizqlserver/vizqlserver_node*-*.log.*

참조

This post is licensed under CC BY 4.0 by the author.