Skip to main content

Audit Logs not showing up (sharding limit reached)

  • January 13, 2023
  • 7 replies
  • 710 views

Andoni_1
Forum|alt.badge.img+9

Hello there,

Context

  • I’m currently working on a customer that has a fully on-prem A360 installation. This was installed like 2 years ago so Audit Log size is considerable (+500k logs).
  • Disk space (C drive) is more than free (+250GB free)

Problem

  • Recent Audit Logs not showing up upon “Audit Logs” tab
  • WebCR log explicitly states: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=validation_exception, reason=Validation Failed: 1: this action would add [10] total shards, but this cluster currently has [992]/[1000] maximum shards open;]

I’ve thought about increasing sharding limit but this is not recommended by Elasticsearch in the mid-long term

Please, do not send me a link to some article that states that this is due to low disk space and changing “index.blocks.read_only_allow_delete” to false is the solution, because it is not (no single index has this setting set to true)

Thank you🤗

 

Pinned reply

March 29, 2023

Hello @Shyam Prakash,

 

I tried to answer you here these days but somehow the forum would not allow me…

(I opened a ticket to AA in regards to this and they explicitly told me that from version 27 onwards this was not an issue anymore. I did not believe it as I did not see any explicit note in the release notes stating this issue)

Yes, your solution is also correct, what I did is delete the replicas (as it is a single node deplyoment it has no sense to talk about replicas)

 

This is what solved my issue back then,

 

Sorry for late response and glad that you sorted it out buddy

This topic has been closed for comments

7 replies

Shyam Prakash
Forum|alt.badge.img

Hi @Andoni,

 

We are facing this similar issue. Is it resolved? Please let me know how it resolved.


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • 589 replies
  • March 23, 2023

@Andoni @Shyam Prakash 

  • stop elastic service
  • Rename data folder to data_bkp (C:\ProgramData\AutomationAnywhere\elasticsearch)
  • Restart the elastic service

Shyam Prakash
Forum|alt.badge.img
rbkadiyam wrote:

@Andoni @Shyam Prakash 

  • stop elastic service
  • Rename data folder to data_bkp (C:\ProgramData\AutomationAnywhere\elasticsearch)
  • Restart the elastic service

 

@rbkadiyam It doesn’t worked. Got Generic server exception in CR. Audit log entries are not getting populated.


Andoni_1
Forum|alt.badge.img+9
  • Author
  • Navigator | Tier 3
  • 85 replies
  • March 24, 2023

Hi @Shyam Prakash . Let’s go point by point:

 

  • I do not support (at all) what @rbkadiyam suggests. I would not rename or mess up (at first) with those directories
  • @Shyam Prakash , which version of A360 are you using? Is it on-premises? How many nodes your deployment has?
  • According to AA support this issue has been fixed from A360 v27 on

Shyam Prakash
Forum|alt.badge.img

Hi @Andoni,

  • We are upgrading from A360 v.22 to v.27 (v.22 to v.25 and then v.25 to v.27)
  • This is on-premise 
  • We have single node
  • After upgrading to v27, last 3 months audit logs are not showing up and also new audit entries are not getting populated.

Tried below steps but it doesn’t worked out, not sure where I am going wrong

  1. https://apeople.automationanywhere.com/s/article/Automation-360-Elasticsearch-password-repair-steps
  2. https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/deployment-planning/on-prem-install/install-elasticsearch-credentials.html
  3. https://apeople.automationanywhere.com/s/article/A2019-Failed-to-connect-to-Elasticsearch-Server-error-in-Audit-logs

Shyam Prakash
Forum|alt.badge.img

@Andoni @rbkadiyam - It has been solved by freeing up the shards using API calls.


Andoni_1
Forum|alt.badge.img+9
  • Author
  • Navigator | Tier 3
  • 85 replies
  • March 29, 2023

Hello @Shyam Prakash,

 

I tried to answer you here these days but somehow the forum would not allow me…

(I opened a ticket to AA in regards to this and they explicitly told me that from version 27 onwards this was not an issue anymore. I did not believe it as I did not see any explicit note in the release notes stating this issue)

Yes, your solution is also correct, what I did is delete the replicas (as it is a single node deplyoment it has no sense to talk about replicas)

 

This is what solved my issue back then,

 

Sorry for late response and glad that you sorted it out buddy


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings