scribe

sudo+syslog日志审计+登陆用户操作统计

梦想的初衷 提交于 2020-11-19 23:54:18
1、查询系统是否已安装sudo、syslog程序 [ root@shangke ~ ] # rpm -qa|egrep "sudo|syslog" rsyslog-5.8.10-10.el6_6.x86_64 sudo-1.8.6p3-19.el6.x86_64 如果没有安装,则用yum安装,yum install -y sudo syslog 2、配置/etc/sudoers 增加配置“Defaults logfile=/var/log/sudo.log”到/etc/sudoers中 [ root@shangke ~ ] # echo "Defaults logfile=/var/log/sudo.log" >>/etc/sudoers [ root@shangke ~ ] # tail -1 /etc/sudoers ##检查操作是否成功 Defaults logfile = /var/log/sudo.log [ root@shangke ~ ] # visudo -c ##检查sudoers文件语法 /etc/sudoers: parsed OK 3、配置系统日志 增加配置local2.debug到/etc/syslog.conf中(Centos5.8中) 增加配置local2.debug到/etc/rsyslog.conf中(Centos6.4中) [ root

【微服务】zipkin 链路追踪

核能气质少年 提交于 2020-08-07 06:20:23
1. zipkin基础介绍: 分布式追踪系统 概念: tranceID: 请求全局处理标识 spanID: 请求在单个服务流转处理标识 ParentID: 子服务中显示父服务ID(spanID),主要用于构建服务调用链路 数据传输到Zipkin方式: http kafka Scribe Zipkin构成组件: collector: zipkin校验、保存、索引接收的追踪数据 storage: zipkin 数据存储(Cassandra、mysql、ES、内存等,支持扩展) search: zipkin 数据检索服务(WEB UI) WEB UI: 数据追踪展示UI,默认没有认证 2. 环境部署 参考官网下载: zipkin quickstart 3. 使用案例 3.1 maven 依赖引入 <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter

小米流式平台架构演进与实践

三世轮回 提交于 2020-02-28 07:57:16
小米业务线众多,从信息流,电商,广告到金融等覆盖了众多领域,小米流式平台为小米集团各业务提供一体化的流式数据解决方案,主要包括数据采集,数据集成和流式计算三个模块。目前每天数据量达到 1.2 万亿条,实时同步任务 1.5 万,实时计算的数据 1 万亿条。 伴随着小米业务的发展,流式平台也经历三次大升级改造,满足了众多业务的各种需求。最新的一次迭代基于 Apache Flink,对于流式平台内部模块进行了彻底的重构,同时小米各业务也在由 Spark Streaming 逐步切换到 Flink。 背景介绍 小米流式平台的愿景是为小米所有的业务线提供流式数据的一体化、平台化解决方案。具体来讲包括以下三个方面: 流式数据存储 :流式数据存储指的是消息队列,小米开发了一套自己的消息队列,其类似于 Apache kafka,但它有自己的特点,小米流式平台提供消息队列的存储功能; 流式数据接入和转储 :有了消息队列来做流式数据的缓存区之后,继而需要提供流式数据接入和转储的功能; 流式数据处理 :指的是平台基于 Flink、Spark Streaming 和 Storm 等计算引擎对流式数据进行处理的过程。 下图展示了流式平台的整体架构。从左到右第一列橙色部分是数据源,包含两部分,即 User 和 Database。 User 指的是用户各种各样的埋点数据,如用户 APP 和 WebServer

今日头条技术架构分析,看这篇就对了!

家住魔仙堡 提交于 2020-02-27 10:31:07
点击上方 " 程序员小乐 "关注, 星标或置顶一起成长 每天凌晨00点00分, 第一时间与你相约 每日英文 Anywhere, it is a good in the past, recall the number of times many, all would be light. 任何地方,再好的过去,回忆的次数多了,一切也就淡了。 每日掏心 话 挖掘自己的潜力,树立自己的信心,开拓自己的事业,扬长避短,循序渐进。 来自:钟镇刚 | 责编:乐乐 链接:blog.csdn.net/mucaoyx/article/details/84498468 程序员小乐(ID:study_tech)第 754 次推文 图片来自 Pexels 往日回顾: 如何更规范化编写 Java 代码 正文 今日头条创立于2012年3月,到目前仅几年时间。从十几个工程师开始研发,到上百人,再到200余人。产品线由内涵段子,到今日头条,今日特卖,今日电影等产品线。 一、产品背景 今日头条是为用户提供个性化资讯客户端。下面就和大家分享一下当前今日头条的数据(据内部与公开数据综合): 5 亿注册用户 2014年5月1.5亿,2015年5月3亿,2016年5月份为5亿。几乎为成倍增长。 日活4800万用户 2014年为1000万日活,2015年为3000万日活。 日均5亿PV 5亿文章浏览,视频为1亿

Retrieve blog feeds using google oauth 2.0 and scribe

﹥>﹥吖頭↗ 提交于 2020-01-06 07:28:10
问题 I used scribe to connect to google using oAuth 2.0 and successfully got the access token. When i am trying to get the blogs i always get the below error Unauthorized Must authenticate to use 'default' user Below is the code snippet GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(CONSUMER_SECRET_KEY); oauthParameters.setScope("http://www.blogger.com/feeds"); oauthParameters

No source code available for Scribe in GWT

霸气de小男生 提交于 2020-01-05 13:44:10
问题 I'm getting this error trying to Compile my GWT Project: No source code is available for type org.scribe.oauth.OAuthService; did you forget to inherit a required module? I have included the scribe .jar file in my "war/WEB-INF/lib", and imported it. Maybe I have to add it to the app_name.gwt.xml? I have tried to do it, but Scribe does not contains any .gwt.xml file. 回答1: I use Scribe with no problems. But it's a server-side library. You should have no references to it in your GWT code. 回答2: In

Authorization code for github used in java via scribe library

时光总嘲笑我的痴心妄想 提交于 2020-01-05 08:09:33
问题 I am trying to access the github api(https://api.github.com/user) as mentioned in scribe library example (https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/GitHubExample.java) which return me this authorization url https://github.com/login/oauth/authorize?response_type=code&client_id=156d37xxxxxxxxx&redirect_uri=http%3A%2F%2Flocalhost%3A8282%2FReportsServer%2Fsuccessful.jsp&state=secret846593 but now i have to give the

OAuth Vimeo with Scribe (Java)

余生长醉 提交于 2020-01-04 21:40:30
问题 Note: You may be able to help me with this just by directing me to a place that explains well how to interface with web services. But help on this specific problem would be greatly appreciated! I'm having a really hard time understanding how OAuth works. I'm trying to develop a desktop application which will upload a bunch of videos to accounts on Vimeo. I've tried tinkering a bit with the Scribe API and its examples. Scribe doesn't have a Vimeo example unfortunately, so I've been trying to

How to implement application-only authentication for twitter in Grails using scribe?

北战南征 提交于 2020-01-03 05:37:06
问题 Earlier i was using GET search/tweets of Twitter API 1.0 To get tweets according to #tags in Grails Map jsonMap = grails.converters.JSON.parse(new URL('http://search.twitter.com/search.json?q=%23' + URLEncoder.encode(tag) + '&offset=' + offset + 'result_type=mixed&lang=en&page=' + page).text) But due to change in Twitter API version 1.1 now the above call requires Authentication. I want to fetch tweets on behalf of Application(Authentication) not by user Authentication. Is this possible? I

scribe + twitter > Cannot get String from a null object

不打扰是莪最后的温柔 提交于 2020-01-02 19:27:25
问题 I try to use scribe for authorization with facebook and twitter. There is no problems with facebook. But when I try requestToken = service.getRequestToken() for twitter I get Cannot get String from a null object > ru.myx.ae3.exec.ExecErrorDefault > Cannot get String from a null object > java.lang.IllegalArgumentException : org.scribe.utils.Preconditions.check(Preconditions.java:84) : org.scribe.utils.Preconditions.checkNotNull(Preconditions.java:31) : org.scribe.utils.StreamUtils