Thursday, October 2, 2014

LOG CATEGORIZATION and ANOMALY DETECTION

Logs Search and Visualization


  1. Extract logging templates (e.g. "Writing to file %s") from the source code to extract identifiers from the logs (the thing in the log corresponding to %s is an identifier). They use certain heuristics to distinguish identifiers from non-identifiers (e.g. time).
  2. Use ratios between values instead of raw number (e.g. ratio of failed and all commits)
  3. Use Principal Component Analysis to discover anomalies in vectors of such features.


from Berkeley
---------------------
Mining Console Logs for Large-Scale System Problem Detection
https://www.usenix.org/legacy/event/sysml08/tech/full_papers/xu/xu_html/


Detecting Large-Scale System Problems by Mining Console Logs
http://www.cs.berkeley.edu/~jordan/papers/xu-etal-icml10.pdf




Slides  - A Graphical representation for identifier structure in application logs 

https://www.usenix.org/legacy/events/slaml10/tech/slides/rabkin.pdf


Wei Xu Home Page
http://iiis.tsinghua.edu.cn/~weixu/

In-Network PCA and Anomaly Detection
http://papers.nips.cc/paper/3156-in-network-pca-and-anomaly-detection.pdf

from AMPLabs
Analyzing Log Analysis: An Empirical Study of User Log Mining (Best Student Paper)

We present an in-depth study of over 200K log analysis queries from Splunk, a platform for data analytics. Using these queries, we quantitatively describe log analysis behavior to inform the design of analysis tools. This study includes state machine based descriptions of typical log analysis pipelines, cluster analysis of the most common transformation types, and survey data about Splunk user roles, use cases, and skill sets. We find that log analysis primarily involves filtering, reformatting, and summarizing data and that non-technical users increasingly need data from logs to drive their decision making. We conclude with a number of suggestions for future research
https://amplab.cs.berkeley.edu/publication/analyzing-log-analysis-an-empirical-study-of-user-log-mining/

---------------------------

from Google

Dapper, a Large-Scale Distributed Systems Tracing Infrastructure
2010
http://research.google.com/pubs/pub36356.html

Detecting Adversarial Advertisements in the Wild
2011
http://static.googleusercontent.com/media/research.google.com/en/us/pubs/archive/37195.pdf

deficiencies
 - highlights slow read/write on MapReduce
 - need to label data with SVM

--------------------------
Using Syslog Message Sequences for Predicting Disk Failures

Automatic Log Analysis using Machine Learning 
----clustering-------

Diagnosing the Root-Causes of Failures from Cluster Log Files



Classification of IDS Alerts with Data Mining Techniques
Log analysis superpowers with a friendly interface.
SiLK is a feature-rich UI that runs on top of Solr giving you the power to search, analyze and visualize massive amounts of both multi-structured and time series data.
http://lucidworks.com/product/integrations/silk/

Machine Learning for Machine Data
  • detection of system-wide changes in behavior
  • “learning by example” to identify events
  • partially supervised discovery of log structure
  • inferring log relevance
  • graph mining of logs
  • time-series modeling of log metrics
Big data log analysis thrives on machine learning
ANOMALY DETECTION
http://www.infoworld.com/article/2608064/big-data/big-data-log-analysis-thrives-on-machine-learning.html

---------------------------------------------
Jay Kreps
I heart logs
http://techbus.safaribooksonline.com/book/operating-systems-and-server-administration/9781491909379


Academic Papers, Systems, Talks, and Blogs

  • These are good overviews of state machine and primary-backup replication.
  • PacificA is a generic framework for implementing log-based distributed storage systems at Microsoft.
  • Spanner—Not everyone loves logical time for their logs. Google’s new database tries to use physical time and models the uncertainty of clock drift directly by treating the timestamp as a range.
  • Datanomic: “Deconstructing the database” is a great presentation by Rich Hickey, the creator of Clojure, on his startup’s database product.
  • “A Survey of Rollback-Recovery Protocols in Message-Passing Systems“—I found this to be a very helpful introduction to fault tolerance and the practical application of logs to recovery outside databases.
  • “The Reactive Manifesto”—I’m actually not quite sure what is meant by reactive programming, but I think it means the same thing as “event driven.” This link doesn’t have much information, but this class by Martin Odersky (of Scala fame) looks fascinating.
  • Paxos!
  • Leslie Lamport has an interesting history of how the algorithm was created in the 1980s but was not published until 1998 because the reviewers didn’t like the Greek parable in thepaper and he didn’t want to change it.Once the original paper was published, it wasn’t well understood. Lamport tried again and this time even included a few of the “uninteresting details,” such as how to put his algorithm to use using actual computers. It is still not widely understood.
    • Fred Schneider and Butler Lampson each give a more detailed overview of applying Paxos in real systems.
    • A few Google engineers summarize their experience with implementing Paxos in Chubby.
    • I actually found all of the Paxos papers pretty painful to understand but dutifully struggled through them. But you don’t need to because this video by John Ousterhout (of log-structured filesystem fame) will make it all very simple. Somehow these consensus algorithms are much better presented by drawing them as the communication rounds unfold, rather than in a static presentation in a paper. Ironically, this video, which I consider the easiest overview of Paxos to understand, was created in an attempt to show that Paxos was hard to understand.
    • “Using Paxos to Build a Scalable Consistent Data Store”—This is a cool paper on using a log to build a data store. Jun, one of the coauthors, is also one of the earliest engineers on Kafka.
  • Paxos has competitors! Actually each of these map a lot more closely to the implementation of a log and are probably more suitable for practical implementation:
    • “Viewstamped Replication” by Barbara Liskov is an early algorithm to directly model log replication.
    • Zab is the algorithm used internally by Zookeeper.
    • RAFT is an attempt at a more understandable consensus algorithm. The video presentation, also by John Ousterhout, is great, too.
  • You can see the role of the log in action in different real distributed databases:
    • PNUTS is a system that attempts to apply the log-centric design of traditional distributed databases on a large scale.
    • HBase and Bigtable both give another example of logs in modern databases.
    • LinkedIn’s own distributed database, Espresso, like PNUTS, uses a log for replication, but takes a slightly different approach by using the underlying table itself as the source of the log.
  • If you find yourself comparison shopping for a replication algorithm, this paper might help you out.
  • Replication: Theory and Practice is a great book that collects a number of summary papers on replication in distributed systems. Many of the chapters are online (for example, 1, 4, 5,6, 7, and 8).
  • Stream processing. This is a bit too broad to summarize, but here are a few things I liked:


Enterprise Software

The enterprise software world has similar problems but with different names.
Event sourcing
As far as I can tell, event sourcing is basically a case of convergent evolution with state machine replication. It’s interesting that the same idea would be invented again in such a different context. Event sourcing seems to focus on smaller, in-memory use cases that don’t require partitioning. This approach to application development seems to combine the stream processing that occurs on the log of events with the application. Since this becomes pretty non-trivial when the processing is large enough to require data partitioning for scale, I focus on stream processing as a separate infrastructure primitive.
Change data capture
There is a small industry around getting data out of databases, and this is the most log-friendly style of database data extraction.
Enterprise application integration
This seems to be about solving the data integration problem when what you have is a collection of off-the-shelf enterprise software like CRM or supply-chain management software.
Complex event processing (CEP)
I’m fairly certain that nobody knows what this means or how it actually differs from stream processing. The difference seems to be that the focus is on unordered streams and on event filtering and detection rather than aggregation, but this, in my opinion is a distinction without a difference. Any system that is good at one should be good at the other.
Enterprise service bus
The enterprise service bus concept is very similar to some of the ideas I have described around data integration. This idea seems to have been moderately successful in enterprise software communities and is mostly unknown among web folks or the distributed data infrastructure crowd.

Open Source

There are almost too many open source systems to mention, but here are a few of them:
  • Kafka is the “log as a service” project that is the inspiration for much of this book.
  • BookKeeper and Hedwig comprise another open source “log as a service.” They seem to be more targeted at data system internals than at event data.
  • Akka is an actor framework for Scala. It has a module for persistence that provides persistence and journaling. (There is even a Kafka plugin for persistence.)
  • Samza is a stream processing framework we are working on at LinkedIn. It uses many of the ideas in this book, and integrates with Kafka as the underlying log.
  • Storm is a popular stream processing framework that integrates well with Kafka.
  • Spark Streaming is a stream processing framework that is part of Spark.
  • Summingbird is a layer on top of Storm or Hadoop that provides a convenient computing abstraction.

About the Author

Jay Kreps is a Principal Staff Engineer at LinkedIn where he is the lead architect for data infrastructure. He is the original author of several open source projects, including Voldemort, Kafka, Azkaban, and Samza.


--------------------
Dan Rice
Cognitive/Machine Learning Scientist - Rice Analytics/SkyRELR.com; Calculus of Thought (Elsevier: Academic Press, 2014)
Top Contributor





James Kobielus, columnist, IBM


APPLYING NLP TO LOG UNDERSTANDING

1. Applications of Big Data Analytics Technologies for Traffic and Network Management Data––Gaining Useful Insights from Big Data of Traffic and Network Management

Kohei Shiomoto

https://www.ntt-review.jp/archive/ntttechnical.php?contents=ntr201311fa1.html

---SVM Classifier on training data

2. Unsupervised Learning Model for Real-Time Anomaly Detection in Computer Networks
http://dblp.uni-trier.de/pers/hd/f/Fukuda:Kensuke
Kensuke Fukuda
CS BIBLIOGRAPHY

Summary:
Detecting a variety of anomalies caused by attacks or accidents in computer networks has been one of the real challenges for both researchers and network operators. An effective technique that could quickly and accurately detect a wide range of anomalies would be able to prevent serious consequences for system security or reliability. In this article, we characterize detection techniques on the basis of learning models and propose an unsupervised learning model for real-time anomaly detection in computer networks. We also conducted a series of experiments to examine capabilities of the proposed model by employing three well-known machine learning algorithms, namely multivariate normal distribution, k-nearest neighbor, and one-class support vector machine. The results of these experiments on real network traffic suggest that the proposed model is a promising solution and has a number of flexible capabilities to detect several types of anomalies in real time.

3. Fulltext - DiVA

uu.diva-portal.org/smash/get/diva2:667650/FULLTEXT01.pdf

by W Li - ‎2013 - ‎Related articles

Abstract
Automatic Log Analysis using Machine Learning Weixi Li Many problems exist in the testing of a large scale system. The automated testing results are not reliable enough and manual log analysis is indispensable when automated testing cannot figure out the problems. However, it requires much expert knowledge, costs too much and is time consuming to do manual log analysis for a large scale system. In this project, we propose to apply machine learning techniques to do automated log analysis as they are effective and efficient to big data problems. Features from the contents of the logs are extracted and clustering algorithms are leveraged to detect abnormal logs. This research investigates multiple kinds of features in natural language processing and information retrieval. Several variants of basic clustering and artificial neural network algorithms are developed. Data preprocessing is experimented before feature extraction as well. In order to select a suitable model for our problem, cross validation and F-score are used to evaluate different learning models compared to automated test system verdicts. Finally, the influences of factors that may affect the prediction results such as single or mixed test cases, single or mixed track types and single or mixed configuration types are verified based on different learning models.


SPLUNK
Splunk Conf 2014 - Splunking the Java Virtual Machine
http://www.slideshare.net/damiendallimore/splunk-conf-2014-splunking-the-java-virtual-machine


K Means Clustering with Tf-idf Weights
http://jonathanzong.com/blog/2013/02/02/k-means-clustering-with-tfidf-weights

http://en.wikipedia.org/wiki/Canopy_clustering_algorithm

Microsoft Log Parser Toolkit: A complete toolkit for Microsoft's ...



Tuesday, September 30, 2014

H2O



here is the link to github to prepare development environment for sparkling water:https://github.com/0xdata/h2o-dev/blob/master/h2o-docs/src/docs/develop/sparkling_water.md
Sparkling Water Demo
Slides of the first Sparkling Water meet up
Sparkling Water code is here
Blog on Sparkling Water
Install and Test Instructions


setting github in vpn
http://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-server
http://www-proxy.us.oracle.com:80


git config --global http.proxy http://www-proxy.us.oracle.com:80
git config --global https.proxy https://www-proxy.us.oracle.com:80
setting gradle in vpn
http://stackoverflow.com/questions/8938994/gradlew-behind-a-proxy

github reference:
----------------------------------------------------------------------------------------------------------------------
Command to use :
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
  • change proxyuser by your proxy user
  • change proxypwd by your prxy password
  • change proxy.server.com by proxy server url
  • change 8080 by proxy port
If you decide at any time to reset this proxy and work without (no proxy):
Commands to use:
git config --global --unset http.proxy
git config --global --unset https.proxy
------------------------------
gradle reference:
gradle.properties
systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
All you have to do is to create a file called gradle.properties (with the properties you mentioned above) and place it under your gradle user home directory (which defaults to USER_HOME/.gradle) 
OR in your project directory.
Gradle (the wrapper too!!!) automatically picks up gradle.properties files if found in the user home directory or project directories.
For more about this, read the gradle user guide, especially section 12.2. Gradle properties and system properties.

NLU


1. Omer Levy



Dependency-Based Word Embeddings
CESAR Data Annotation and Analysis
 – Principal Researcher at Lenovo
Research and design of speech-based and multimodal human-machine interfaces.

Previous
  1. Honda Research Institute, 
  2. Carnegie Mellon University,
  3. Advanced Telecommunications Research Institute International (NICT)
Education
  1. Carnegie Mellon University


Omer Levy∗
and Yoav Goldberg
Computer Science Department
Bar-Ilan University
Ramat-Gan, Israel
{omerlevy,yoav.goldberg}@gmail.com
http://anthology.aclweb.org/P/P14/P14-2050.pdf

http://levyomer.wordpress.com/category/semantic-similarity/
UKP-BIU: Similarity and Entailment Metrics for Student Response Analysis
http://aclweb.org/anthology/S/S13/S13-2048.pdf


    Yoav Goldberg

    personal page at  BGU

    I am a brilliant Senior Lecturer at Bar Ilan University's Computer Science Department. Before that, I did my Post-Doc as a Research Scientist at Google Research New York.

    I work on problems related to Natural Language Processing and Machine Learning. In particular I am interested in syntactic parsing, structured-prediction models, learning for greedy decoding algorithms, multilingual language understanding, confidence estimation and prediction of partial structures.

    I completed my PhD at Ben-Gurion University in 2011, under the supervision of Prof. Michael Elhadad.
    Publications

Mining the Hebrew Web,Yoav Goldberg



Tomas Mikolov
https://www.linkedin.com/pub/tomas-mikolov/88/311/598





The Stanford NLP Group

http://nlp.stanford.edu/

Semantic Matching Project - S-Match - open source
Trento University
http://semanticmatching.org/s-match.html


4. Semantic Indexing and Multimedia Event Detection:
ECNU at TRECVID 2012
Feng Wang†
, Zhanhu Sun†
, Daran Zhang†
, Chong-Wah Ngo‡
†Dept. of Computer Science and Technology, East China Normal University
‡ Dept. of Computer Science, City University of Hong Kong


5. UNAL-NLP: Combining Soft Cardinality Features for Semantic
Textual Similarity, Relatedness and Entailment



6. 

The Meaning Factory: Formal Semantics for Recognizing ...

www.let.rug.nl/bos/.../Bjerva2014SemEval.pdf

University of Groningen
by J Bjerva - ‎Cited by 1
The Meaning Factory: Formal Semantics for Recognizing Textual. Entailment and Determining Semantic Similarity. Johannes Bjerva. Univ. of Groningen.
Welcome to the Meaning Factory!
Click here to enter the Groningen Meaning Bank
Click here to visit the VP Ellipsis corpus
Click here to download Boxer

7. Vector Based Models Of Semantic Composition
http://www.freebook.im/vector/vector-based-models-of-semantic-composition-association-for









  • SemEval 2014 - QCRI-ALT server

    alt.qcri.org/semeval2014/cdrom/SemEval-2014.pdf
    SemantiKLUE: Robust Semantic Similarity at Multiple Levels Using Maximum Weight Matching. Thomas ...... dard MT metrics such as BLEU, NIST, METEOR.
  • PDF of Vector Based Models Of Semantic Composition ...

    www.freebook.im/.../vector-based-models-of-semantic-composition-asso...

    11. http://csrc.nist.gov/publications/fips/f. Send. Read Download send to ....Semantiklue: Robust Semantic Similarity At Multiple Levels alt.qcri.org November 5, ...
  • Enriching Pdf 3d Documents With Semantic Metadata From ...

    www.freebook.im › 3d Templates For Tea Pots And Paper

    Apr 1, 2013 - Semantiklue: Robust Semantic Similarity At Multiple Levels alt.qcri.org November 5, .... 11. http://csrc.nist.gov/publications/fips/f. Send. Read









  • SemEval 2014 - QCRI-ALT server

    alt.qcri.org/semeval2014/cdrom/SemEval-2014.pdf
    SemantiKLUE: Robust Semantic Similarity at Multiple Levels Using Maximum Weight Matching. Thomas ...... dard MT metrics such as BLEU, NIST, METEOR.

  • 2. David Cohen

    Carnegie Melloon University Ph.D.
    Intern at Toyota Info-tech Center
    https://www.linkedin.com/pub/david-cohen/47/14a/b32



    Data annotation and analysis of human interaction in a multi sensored car environment as a part of the Honda Research Institute sponsored CESAR initiative. 

    3. Antoine Raux
    Research and design of speech-based and multimodal human-machine interfaces.

  • IBM NLP Watson
  • IBM Research
    http://researcher.watson.ibm.com/researcher/view_group.php?
    Natural Language Processing
    publications
    http://researcher.watson.ibm.com/researcher/view_group_pubs.php?grp=147

    2013 Semantic Technologies in IBM WatsonTM
    http://www.patwardhans.net/papers/GliozzoBPM13.pdf

    Alfio Gliozzo
    IBM Watson Research Center
    Yorktown Heights, NY 10598
    gliozzo@us.ibm.com
    Or Biran
    Columbia University
    New York, NY 10027
    orb@cs.columbia.edu
    Siddharth Patwardhan
    IBM Watson Research Center
    Yorktown Heights, NY 10598
    siddharth@us.ibm.com
    Kathleen McKeown
    Columbia University
    New York, NY 10027
    kathy@cs.columbia.edu


  • commercial page: id=147http://www.ibm.com/smarterplanet/us/en/ibmwatson/implement-watson.html
  • Leader: Dr. Satya V. Nitta is currently the Program Leader of the Cognitive Learning Content research group at IBM’s T J Watson Research Center where he is developing cognitive computing based next generation adaptive learning technologies. http://researcher.ibm.com/researcher/view.php?person=us-svn
  • SALIENCE
  • http://datasift.com/source/19/salience-entities
  • Ahmed Hassan 
  • Discovering Salience in Textual Elements using Graph Mutual Reinforcemnt SI508 Project Ahmed Hassan hassanam@umich.edu
  • http://www-personal.umich.edu/~ladamic/courses/networks/si508f07/projects/SummarizationHITS.pdf


  • Saturday, September 27, 2014

    FINANCIAL ML

    Reinforcement Learning for Portfolio Management

    Problem definition:

    1. Based on pre-opening signals achieve daily Sharpe ratio close to 1 for a directional trade in SPY

    2. Use Atari and Go game winning strategy

    Demis Hassabis ‏@demishassabis (see later deepmind post)

    Modern Portfolio Theory states that adding assets to a diversified portfolio that have correlations of less than one with each other can decrease portfolio risk without sacrificing return. Such diversification will serve to increase the Sharpe ratio of a portfolio.

    Sharpe ratio = (Mean portfolio return − Risk-free rate)/Standard deviation of portfolio return



    The ex-ante Sharpe ratio formula uses expected returns while the ex-post Sharpe ratio uses realized returns.

    Read more: Sharpe Ratio Definition | Investopedia http://www.investopedia.com/terms/s/sharperatio.asp#ixzz4C15w8pDI

    AQR Funds
    https://funds.aqr.com/

    MSCI, A LEADER IN FACTOR INDEXING
    https://www.msci.com/factor-indexes




























    ALGORITHMIC TRADING

    Classification-Based Financial Markets Prediction Using Deep Neural Networks

    Matthew Francis Dixon
    Illinois Institute of Technology – Stuart School of Business, IIT

    Diego Klabjan
    Northwestern University

    Jin Hoon Bang
    Northwestern University

    May 18, 2016

    Abstract:

    Deep neural networks (DNNs) are powerful types of artificial neural networks (ANNs) that use several hidden layers. They have recently gained considerable attention in the speech transcription and image recognition community for their superior predictive properties including robustness to over fitting. However their application to algorithmic trading has not been previously researched, partly because of their computational complexity. This paper describes the application of DNNs to predicting financial market movement directions. In particular we describe the configuration and training approach and then demonstrate their application to back testing a simple trading strategy over 43 different Commodity and FX future mid-prices at 5-minute intervals. All results in this paper are generated using a C++ implementation on the Intel Xeon Phi co-processor which is 11.4x faster than the serial version and a Python strategy back testing environment both of which are available as open source code written by the authors.

    Engineering ML


    1. Recovering And Using Use-Case-Diagram-To-Source-Code
    Traceability Links

    ESEC/FSE’07, September 3–7, 2007, Cavtat near Dubrovnik, Croatia.
    Copyright 2007 ACM 978-1-59593-811-4/07/0009 ...$5.00.

    2. google search for
    mining software repositories for traceability links
    https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=mining+software+repositories+for+traceability+links&revid=521494032