Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@elastic/makelogs
Advanced tools
Readme
Simple generator used to push fake HTTP traffic logs into elasticsearch. It uses the node.js client.
This version of makelogs is designed to work with the latest builds from elasticsearch master, and is not compatible with previous versions.
Events are pushed into logstash-YYYY.MM.DD
formatted indices (configurable using --indexPrefix
), using the bulk API, and are easily consumed by Kibana.
Documents look like this:
{
"_index": "logstash-2014.06.17",
"_type": "_doc",
"_id": "706786",
"_score": 11.412156,
"_source": {
"index": "logstash-2014.06.17",
"@timestamp": "2014-06-17T17:00:27.053Z",
"ip": "225.27.202.82",
"extension": "html",
"response": "200",
"geo": {
"coordinates": [
44.23107,
-94.99893444
],
"src": "IM",
"dest": "PK",
"srcdest": "IM:PK"
},
"@tags": [
"error",
"info"
],
"utc_time": "2014-06-17T17:00:27.053Z",
"referer": "http://nytimes.com/error/gemini-11",
"agent": "Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1",
"clientip": "225.27.202.82",
"bytes": 5108.1583889899775,
"request": "/ivan-bella.html",
"@message": "225.27.202.82 - - [2014-06-17T17:00:27.053Z] \"GET /ivan-bella.html HTTP/1.1\" 200 5108.1583889899775 \"-\" \"Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1\"",
"spaces": "this is a thing with lots of spaces wwwwoooooo",
"xss": "<script>console.log(\"xss\")</script>",
"headings": [
"<h3>robert-satcher</h5>",
"http://twitter.com/success/scott-altman"
],
"links": [
"mamoru-mohri@www.slate.com",
"http://www.slate.com/info/boris-yegorov",
"www.twitter.com"
],
"machine": {
"os": "win 7",
"ram": 17179869184
}
}
}
npm install -g @elastic/makelogs
then run makelogs --help
for usage info:
$ ./bin/makelogs --help
A utility to generate sample log data.
Usage: node ./bin/makelogs@beta [options]
Options:
...
The tool is, admittedly, not super configurable. Just tell it how many events you want, how many days to generate data for, and it will cruise.
The event stream can be a tad unforgiving, and could cause some damage to an elasticsearch cluster under load. It is designed for debugging locally.
FAQs
Simple log generator for testing kibana
The npm package @elastic/makelogs receives a total of 35,390 weekly downloads. As such, @elastic/makelogs popularity was classified as popular.
We found that @elastic/makelogs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 70 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.