Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Elastic-agent]: Getting issue with "elast-agent.reference.yml" file while performing Standalone (Manual Configuration) for agent 8.0 on 8.0 cloud environment #19550

Closed
ghost opened this issue Jul 1, 2020 · 10 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jul 1, 2020

Kibana version:
Kibana: 8.0

Elasticsearch version:
Elasticsearch: 8.0

Agent version:
Agent: 8.0

Browser version:
Windows 10, Chrome

Original install method (e.g. download page, yum, from source, etc.):
From download page.

Description
[Elastic-agent]: Getting issue with "elast-agent.reference.yml" file while performing Standalone (Manual Configuration) for agent 8.0 on 8.0 cloud environment

Preconditions
1.Kibana 8.0 cloud environment should be available.

Steps to Reproduce

  1. Open the Kibana 8.0 cloud environment in browser, then click Ingest Manager>Configuration tab.
  2. Navigate to default configuration page and then click on "Action" link and select "Copy Config" option.
  3. Paste the same in Agent 8.0>elastic-agent.reference.yml file.
  4. Then added username and password (for elasticsearch) under "Output" section inside yml file and save it.
  5. Now open the power shell window and move to the location of agent.
  6. Run the "elastic-agent.reference.yml" file with command: ./elastic-agent -c elastic-agent.reference.yml run
  7. Observe that error "did not find "-" expected indicator appears on running the above command.

Test data
Followed steps given for "Standalone Manual Configuration" inside the "Ingest Management Guide for [8.0]".

Impacted Test case id
N/A

Actual Result
[Elastic-agent]: Did not find expected "-" indicator error appears while running the "elast-agent.reference.yml" config file for performing Standalone (Manual Configuration) for agent 8.0 on 8.0 cloud environment

Expected Result
[Elastic-agent]: No error should come while performing Standalone (Manual Configuration) for agent 8.0 on 8.0 cloud environment

What's working
N/A

What's not working
N/A

Screenshot
errorstandalonequery

Logs
N/A

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 1, 2020
@botelastic
Copy link

botelastic bot commented Jul 1, 2020

This issue doesn't have a Team:<team> label.

@ghost
Copy link
Author

ghost commented Jul 1, 2020

@manishgupta-qasource : Review and assigned the issue

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 1, 2020
@manishgupta-qasource manishgupta-qasource changed the title [Elastic-agent]: Getting issue with "elast-agent.reference.yml" file while performing Standalone (Manual Configuration) for agent 7.8 on 7.8 cloud environment [Elastic-agent]: Getting issue with "elast-agent.reference.yml" file while performing Standalone (Manual Configuration) for agent 8.0 on 8.0 cloud environment Jul 1, 2020
@manishgupta-qasource
Copy link

Reviewed & assigned to @EricDavisX

@ph
Copy link
Contributor

ph commented Jul 1, 2020

moved to @michalpristas

@michalpristas
Copy link
Contributor

oh i see it now, problem is with indentation of username and password. it is subkey of hosts where hosts is expected to be a list of strings and credentials should be coupled with output.
@kamalpreetpahwa-qasource if you could place credential information at the same level as hosts key and verify (it worked for me). i think then we can close this issue

@ghost
Copy link
Author

ghost commented Jul 3, 2020

Hi @michalpristas

Thanks for looking into the issue and providing your inputs on the same.

We checked the issue after updating the "elastic-agent.reference.yml" file with correct indentation for "username and password" information and observed that issue is resolved.

Environment Details:

Kibana 8.0
Agent 8.0.0 snapshot
Windows 10

Now we are able to successfully configure the stand alone agent and data is streaming under Data stream tab.

Screenshot:
indentation

Hence, we are closing this issue.

Thanks

@ghost ghost closed this as completed Jul 3, 2020
@EricDavisX
Copy link
Contributor

@kamalpreetpahwa-qasource hi - are the docs for this wrong somewhere? We can leave it open for the Docs to be updated as needed. Thanks! Please confirm with screenshots and we can re-close it if its fixed in the main docs. :)

@EricDavisX EricDavisX reopened this Jul 6, 2020
@michalpristas
Copy link
Contributor

went through configuration files and I dont see wrong intentation anywhere. can we close this @EricDavisX

@EricDavisX
Copy link
Contributor

yes, closing it out - thanks Michal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants