㈠ 萬洲金業跟華鑫投貴金屬比較好用的是哪一家
我選擇這類型的交易平台比較看重它是否正規,而且功能是否齊全,綜合考慮的話,我比較推薦華鑫投貴金屬,畢竟他們擁有美國監管最嚴格NFA牌照,而且它的功能也是比較多的,操作起來也很方便。
㈡ splunk中db connect配置的JVM options應該怎樣寫才對每次都是fail
Splunk DB Connect安裝與其他Splunk
App有點不同,它需要java環境才可皮腔賀以跑起來,對於MSSQL,HyperSQL可以直接連接,但對於MYSQL和Oracle
JDBC則需要下載相應的drivers,下載地址:
MYSQL:
http://dev.mysql.com/downloads/connector/j/
The archive contains the JDBC driver: mysql-connector-java-*-bin.jar
Oracle JDBC:
ojdbc6.jar from http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html
需要將下載的jar文件放在 $SPLUNK_HOME/etc/apps/dbx/bin/lib 目錄下.
在Splunk
DB Connect configuration里設置本機圓旁的JAVA環境:
環境設置完成後既可添加資料庫,本實例以MYSQL資料庫為例.在Manange>External Databases下點擊NEW進入到"ADD new database"面板,選擇MYSQL資料庫,將資料庫地址,服務埠(3306),資料庫名稱,用戶名和密碼:
DB
info功能是可以查看以連接的資料庫中各個表的結構信息,使用方法也是極其簡單,找到選擇的表,點擊一下就可以看到此表的各種詳細信息,包括各個欄位,類型,長度等等,具體信息如下圖:
而DB query也正如其字面意思,就是運行一句sql語句:
以上都是一些小功能,而其導入database中的各個表的數據才燃派是核心功能.首先提供了兩種方式來export
data,mp方式和tail方式,兩種方式都可以以選擇整張表或運行sql語句的方式來export.
mp方式即為一次性的將表的內容全部export出來,然後索引到splunk中.如下圖.
tail方式類似於linux的tail -f命令,即為對特定表內的數據進行追加索引,這樣可以時時同步splunk與database內的數據.導入方法與mp方式類似,只是在指定sql語句時,對於where的條件要確定;
database內的數據在索引後,欄位的名字也會自動按sql語句或是表的欄位名提取出來,非常的方便;
以下是一些個人的使用心得:
1.對於資料庫內存儲的時間戳,最好使用FROM_UNIXTIME換成日期格式;這樣對於一次性mp的數據可以按時間排列,暫時未找到數據在export時使用一個欄位的時間作為_time.
2.我在export中,發現對於表內記錄一些使用整數來記錄stats欄位時對於非bool型欄位,針對0和1,在export到splunk時該欄位全部都被認作了false/true,解決辦法為使用cast函數把該數值轉換成字元型,例如cast(
`statsitem` AS char ) AS statsitem.
3.Splunk
DB Connect是可以lookup欄位的,不過我比較愛偷懶,在sql語句內用了兩個inner
join來直接lookup欄位,雖然流程,數據正確性都沒問題,但悲劇的是,由於這兩個inner join
對於一個70w數據的表的tail導入,不到6個小時就成功的將database拖垮掉-_-!.所以老老實實去用lookup吧
㈢ splunk add-on for unix and linux 怎麼用
linux裡面的壓縮文件,一般是tar.gz 或者是遲明扒zip文件;rar文件時沒法解壓縮的。 1、tar.gz 文件:tar zxvf 文槐磨件.tar.gz 文件會直碼昌接加壓到當前目錄 2、zip文件: unzip 文件.tar.gz 文件會直接加壓到當前目錄
㈣ 如何申請免費splunk授權
在http://www.splunk.com上就有下載,下載後使沖嘩旅用的免費版
60天後或60天以內的蘆畝任何時間都可以申請為永久免費版或收費的企業版。
永久免費版每天只有500K的容量,企業版按使用容量大小所需的license收費。
在官網上散凳都說的很清楚,需要什麼一路點下去就OK啦
㈤ Splunk的客戶端該怎麼配置Splunk的伺服器端有沒有中文版的
安裝環境:
CentOS 6.2 64Bit
安裝:
首先關閉selinux:
?
1
2
3
#vi /etc/sysconfig/selinux
SELINUX=disabled
setenforce 0
?
1
2
3
4
5
6
7
下載最新版:
splunk-6.0.1-189883-Linux-x86_64.tgz
#tar -zxvf splunk-6.0.1-189883-Linux-x86_64.tgz
#cd ..
#mv splunk /usr/local
#cd /usr/local/splunk/bin
#./splunk enable boot-start
然後需要瀏覽完協議後輸入"y"
第一次安裝會提示:
?
1
2
3
4
5
6
This appears to be your first time running this version of Splunk.
Copying '/usr/local/蘆陪splunk/etc/openldap/ldap.conf.default' to '/usr/local/splunk/etc/openldap/ldap.conf'
Moving '/usr/local/splunk/share/splunk/search_mrsparkle/moles.new' to '/usr/local/splunk/share/splunk/search_mrsparkle/moles'.
Init script installed at /etc/init.d/splunk.
Init script is not configured to run at boot.
把/usr/local/splunk/etc/openldap/ldap.conf.default拷到/usr/local/splunk/etc/openldap/ldap.conf
然後執行:
?
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
45
46
47
#/etc/init.d/splunk start
Starting Splunk...
Splunk> Take the sh out of IT.
Checking prerequisites...
Checking http port [8000]: open
Checking mgmt port [8089]: open
Checking configuration... Done.
Creating: /usr/local/splunk/var/lib/splunk
Creating: /usr/local/splunk/var/run/splunk
Creating: /usr/local/splunk/var/run/splunk/appserver/i18n
Creating: /usr/local/splunk/var/run/splunk/appserver/moles/static/css
Creating: /usr/local/splunk/var/run/splunk/正嘩芹upload
Creating: /usr/local/splunk/var/spool/splunk
Creating: /usr/local/splunk/var/spool/dirmoncache
Creating: /usr/舉畢local/splunk/var/lib/splunk/authDb
Creating: /usr/local/splunk/var/lib/splunk/hashDb
Checking critical directories... Done
Checking indexes...
Validated: _audit _blocksignature _internal _thefishbucket history main summary
Done
New certs have been generated in '/usr/local/splunk/etc/auth'.
Checking filesystem compatibility... Done
Checking conf files for typos... Done
All preliminary checks passed.
Starting splunk server daemon (splunkd)...
Done
[確定]
Starting splunkweb... Generating certs for splunkweb server
Generating a 1024 bit RSA private key
.............++++++
.....................................................++++++
writing new private key to 'privKeySecure.pem'
-----
Signature ok
subject=/CN=localhost.localdomain/O=SplunkUser
Getting CA Private Key
writing RSA key
[確定]
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://127.0.0.1:8000