How to retrieve the System logs using cURL command?

Hi @techrahul95 … I think you misunderstood me, or I’m misunderstanding you. So just want to be clear:
Using an external Syslog server you can have as many lines as you want. You could keep years’ worth of logs. Using the SEMPv1 command above, you can ask for 10000 or 50000 lines if you want. Just be warned that you can’t (probably) ask for a million or something. But I don’t think there’s a configured maximum. The “2000” above was just showing an example. Obviously the external Syslog server is the best option, as you don’t have to query the broker any time you want to look at log files.
Glad to have helped…!