Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

curl get command outputs xml after add maxresultrows

$
0
0
i'm trying to output a file in CSV format with maxresultrows in it, using curl. It Works like that, the way i want: $(curl -s -u user:pass -k https://localhost:8089/services/search/jobs/$id/results/?count=0 --get -d output_mode=csv > ${file}) However, now i want a larger number of rows, so i add: maxresultrows=500000 But it outputs in xml instead of csv, event with output_mode=csv: $(curl -s -u user:pass -k https://localhost:8089/services/search/jobs/$id/results/?count=0 --get -d maxresultrows=500000 output_mode=csv > ${file}) what am i missing here? EDIT: One thing that i found was that without "maxresultrows" and "output_mode=csv", it outputs all result rows but in xml, its seem that the bottleneck is the output_mode, can't find why it just doesn't outputs all the result rows in CSV file. Please someone help me

Viewing all articles
Browse latest Browse all 47296

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>