[ https://issues.apache.org/jira/browse/GEODE-2725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15947580#comment-15947580 ]
Patrick Rhomberg edited comment on GEODE-2725 at 3/29/17 6:05 PM: ------------------------------------------------------------------ I believe that the {code}--dir=./tmp{code} will be discarded also, if the command is not sent over HTTP/*S. Such is the behavior described in the {code}--dir={code} help text: > Value is required for parameter "dir: Local directory to which logs will be > written. This is used only when you are exporting logs using an http > connection. If not specified, logs are written to the location specified by > the user.dir system property. It is also worth noting that the default export path is not the Geode install directory, but the locator's folder. In your case, because the working directory for gfsh was the install directory when you spawned the locator, the locator folder defaulted there. The subsequently exported log then defaulted to the locator's folder, which happens in this case to be a subdirectory of the Geode install. was (Author: prhomberg): I believe that the {code}--dir=./tmp{code} will be discarded also, if the command is not sent over HTTP/*S. Such is the behavior described in the {code}--dir={code} help text: > Value is required for parameter "dir: Local directory to which logs will be > written. This is used only when you are exporting logs using an http > connection. If not specified, logs are written to the location specified by > the user.dir system property. > export logs does not honor --dir > -------------------------------- > > Key: GEODE-2725 > URL: https://issues.apache.org/jira/browse/GEODE-2725 > Project: Geode > Issue Type: Sub-task > Components: gfsh, logging > Reporter: Swapnil Bawaskar > Assignee: Patrick Rhomberg > > When connected to locator via jmx, run the following command: > {noformat} > gfsh>export logs --dir=tmp > {noformat} > Observer that the dir option is ignored: > {noformat} > Logs exported to the connected member's file system: > /Users/sbawaskar/apache/geode/geode-assembly/build/install/apache-geode/loc1/exportedLogs_1490721273215.zip > {noformat} > The --tmp option is honored when connected via http. -- This message was sent by Atlassian JIRA (v6.3.15#6346)