splunk

Getting errors when running Splunk SDK examples: “No appropriate protocol (protocol is disabled or cipher suites are inappropriate)”

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I downloaded Splunk Java SDK from website ( http://dev.splunk.com/sdks ) and trying to run it under jdk1.8.0_91 (windows 10). However I am getting exception. How do I make it work? "C:\Program Files\Java\jdk1.8.0_91\bin\java" -Didea.launcher.port=7537 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_91\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_91\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_91\jre\lib\ext

splunk pyhton数据接口

匿名 (未验证) 提交于 2019-12-03 00:18:01
1.通过接口,执行查询语句,并将获取到的查询结果存在字典中 import splunklib.client as client import splunklib.results as results #定义连接信息 HOST= "localhost" #splunk服务器地址 PORT= 8089 #端口 USERNAME= "admin" #登录名 PASSWORD= "passwd" #密码 #定义查询语句 search_spl= "index=test earliest=0 |stats count by visitorid,referer_type,campain |sort 20 -count" #从splunk中查询数据,并将结果保存在字典中 def get_dict_data (search_spl) : #配置连接 service = client.connect( host=HOST, port=PORT, username=USERNAME, password=PASSWORD ) #执行查询语句 rr = results.ResultsReader(service.jobs.export( "search " +search_spl)) for result in rr: if isinstance(result,results.Message): print

Cross origin requests are only supported for protocol schemes: http

 ̄綄美尐妖づ 提交于 2019-12-02 14:15:12
This is a general JavaScript question but it pops up in this code which uses Splunk JavaScript SDK... the error is: XMLHttpRequest cannot load file:///C:/proxy/services/auth/login?output_mode=json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. jquery.min.js:4 <!DOCTYPE html> <html> <head> </head> <body> <script type="text/javascript" src="json2.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script type="text/javascript" src=

How can I log from my python application to splunk, if I use celery as my task scheduler?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 04:25:25
问题 I have a python script running on a server, that should get executed once a day by the celery scheduler. I want to send my logs directly from the script to splunk. I am trying to use this splunk_handler library. If I run the splunk_handler without celery locally, it seems to work. But if I run it together with celery there seem to be no logs that reach the splunk_handler. Console-Log: [SplunkHandler DEBUG] Timer thread executed but no payload was available to send How do I set up the loggers

Splunk Fundamentals 2 – Lab Exercises

安稳与你 提交于 2019-12-02 03:00:54
1、Lab Exercise 2 – Beyond Search Fundamentals   1.1、搜索:index=web sourcetype=access_combined | table clientip action status 2、Lab Exercise 3 – Commands for Visualizations   2.1、搜索:index=security sourcetype=linux_secure vendor_action=failed   2.2、搜索:sourcetype=linux_secure vendor_action=failed | chart count over vendor_action by src_ip #创建图表,通过ip展示每一个的动作   2.3、搜索:index=security sourcetype=linux_secure vendor_action=failed | chart count over vendor_action by src_ip useother=f #将other去除掉   2.4、搜索:    来源: https://www.cnblogs.com/fumy/p/11727681.html

A regex with Splunk

扶醉桌前 提交于 2019-12-02 02:46:50
问题 Got some troubles with my regex. I got some lines like this: SomeText#"C:\\","Shadow Copy Components:\\","E:\\","" SomeText#"D:\\" SomeText#"E:\\","Shadow Copy Components:\\" SomeText#"SET SNAP_ID=serv.a.x.com_1380312019","BACKUP H:\\ USING \\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy47\\ OPTIONS:ALT_PATH_PREFIX=c:\\VERITAS\\NetBackup\\temp\\_vrts_frzn_img_3200\" SomeText#"SET SNAP_ID=serv.a.x.com_1380312019","BACKUP Y:\\Libs USING \\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy47\

How can I log from my python application to splunk, if I use celery as my task scheduler?

谁说我不能喝 提交于 2019-12-02 02:05:36
I have a python script running on a server, that should get executed once a day by the celery scheduler. I want to send my logs directly from the script to splunk. I am trying to use this splunk_handler library. If I run the splunk_handler without celery locally, it seems to work. But if I run it together with celery there seem to be no logs that reach the splunk_handler. Console-Log: [SplunkHandler DEBUG] Timer thread executed but no payload was available to send How do I set up the loggers correctly, so that all the logs go to the splunk_handler? Apparently, celery sets up its own loggers

splunk与syslog建立强大的日志服务器

北慕城南 提交于 2019-12-01 20:15:09
splunk是什么? Splunk 是一个运行于 Unix 环境下的日志分析软件.与 Google Analytics 这一类的 Web 日志分析软件的不同之处在于,Splunk 可以支持任何服务器产生的日志,其对日志进行处理的方式是进行高效索引之后让管理员可以对日志中出现的各种情况进行搜索,并且通过非常好的图形化的方式展现出来。 每天由各种服务器所产生的日志的数量是非常惊人的,而遇到突发情况时,却往往能够从这些海量日志中找到最多的有用消息。通常在 Unix 下对日志进行查找使用的是 grep 之类的低效率的方式,而 Splunk 使用了现代搜索引擎技术对日志进行搜索,同时提供了一个非常强大的 AJAX 式的界面展现日志(文字来自互联网)。 需关闭selinux vi /etc/sysconfig/selinux SELINUX=disabled setenforce 0 开始安装 wget http://download.splunk.com/releases/3.4.9/linux/splunk-3.4.9-57762-Linux-i686.tgz tar -zxvf splunk-3.4.9-57762-Linux-i686.tgz cd .. mv splunk /usr/local cd /usr/local/splunk/bin ./splunk enable boot

Tool for parsing SMTP logs that finds bounces

淺唱寂寞╮ 提交于 2019-11-30 16:01:32
Our web application sends e-mails. We have lots of users, and we get lots of bounces. For example, user changes company and his company e-mail is no longer valid. To find bounces, I parse SMTP log file with log parser. The logs come from Microsoft SMTP server. Some bounces are great, like 550+#5.1.0+Address+rejected+user@domain.com . There is user@domain.com in bounce. But some do not have e-mail in error message, like 550+No+such+recipient . I have created simple Ruby script that parses logs (uses log parser) to find which mail caused something like 550+No+such+recipient . I am just surprised

Tool for parsing SMTP logs that finds bounces

二次信任 提交于 2019-11-30 15:51:50
问题 Our web application sends e-mails. We have lots of users, and we get lots of bounces. For example, user changes company and his company e-mail is no longer valid. To find bounces, I parse SMTP log file with log parser. The logs come from Microsoft SMTP server. Some bounces are great, like 550+#5.1.0+Address+rejected+user@domain.com . There is user@domain.com in bounce. But some do not have e-mail in error message, like 550+No+such+recipient . I have created simple Ruby script that parses logs