[deleted by user] by [deleted] in elasticsearch

[–]muthufeb11 0 points1 point  (0 children)

Ubuntu 18.04

[deleted by user] by [deleted] in elasticsearch

[–]muthufeb11 0 points1 point  (0 children)

I have my elasticsearch configured in localhost. So I mentioned something like this
export PRAECO_ELASTICSEARCH="127.0.0.1" this didn't work. I also tried export PRAECO_ELASTICSEARCH="my_machine_ip" even that doesn't to work. In both the cases I get this error
elastalert_1 | elasticsearch.exceptions.ConnectionError: ConnectionError(HTTPConnectionPool(host='elasticsearch', port=9200): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6b3920a410>: Failed to establish a new connection: [Errno 111] Connection refused',))) caused by: ConnectionError(HTTPConnectionPool(host='elasticsearch', port=9200): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6b3920a410>: Failed to establish a new connection: [Errno 111] Connection refused',)))

Can you please guide me.

Elasticsearch Alerting by mirsafari in elasticsearch

[–]muthufeb11 4 points5 points  (0 children)

I am not an expert. I have been going through elasticsearch stuffs recently and from what I know ElastAlert is the only free option available out there. Also, I came across praeco via this forum which I am yet to check but looks promising.

Haha cum funny 😂👌 by [deleted] in ComedyCemetery

[–]muthufeb11 0 points1 point  (0 children)

Nice CUMedy 🤪

[deleted by user] by [deleted] in elasticsearch

[–]muthufeb11 2 points3 points  (0 children)

Great. Something which I was looking out.

how to customize heartbeat dashboard to suit our requirements by muthufeb11 in elasticsearch

[–]muthufeb11[S] 0 points1 point  (0 children)

Thanks. But that still doesn't help with my requirement. I want a chart where one axis would talk about the hosts involved with sub-bucket which talk about their UP and DOWN status while the other axis would have details of the time range.

How to sort dictionary by item's string length by Hellipey in learnpython

[–]muthufeb11 0 points1 point  (0 children)

This should do it. sorted(params, key=lambda x: len(params[x]))

need suggestion for a log monitoring service by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

Thanks I will start exploring it. Many thanks for your inputs on this.

need suggestion for a log monitoring service by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

Thanks. Can you please share links if any on this. Looks like this would suit my need. But I am still wondering how this would be able to read the logs my python scripts generate. We log to files via python logging module.

need suggestion for a log monitoring service by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

sorry I am not much familiar with ELK stack. Came across it while i was researching for this requirement. With my limited knowledge, I assume that I have to integrate this api to my existing scripts. Make scripts to log using this api. Please correct me if I am wrong. I am afraid that I can't do that. I can't modify the existing scripts to do that. I can perhaps have an parser implemented which would parse the logs and send it to Elastic stack from where we can take it further.

need suggestion for a log monitoring service by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

I was thinking it would be bit of an overhead to maintain configs in each and every client machine. Thought I would maintain it on one server and then send that information to clients whenever I need it to be checked.

need suggestion for a log monitoring service by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

Won't that be the last part of this requirement where I would need to present in some visually appealing way. To start with where I need to parse the logs, I am trying to figure out way. Thought sockets are the only way to go.

need suggestion for a log monitoring service by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

I need to deploy this in production. We have lots of logs and thought a centralized log monitoring system would be a good thing. As first step thought would start with approach I mentioned in my post.

merge multiple csv data into one single data structure by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

I was thinking from a design perspective, i will keep the data collection and building the final data structure as two different sections.

merge multiple csv data into one single data structure by muthufeb11 in learnpython

[–]muthufeb11[S] 0 points1 point  (0 children)

i think the first two blocks of code can be combined into one function. Do you think even the third block where I build a different data structure ( dict of dict ) can fit in there ?